Skip to content

Conversation

@tannergooding
Copy link
Member

This resolves #78023

@ghost ghost assigned tannergooding Nov 10, 2022
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 10, 2022
@ghost
Copy link

ghost commented Nov 10, 2022

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

This resolves #78023

Author: tannergooding
Assignees: tannergooding
Labels:

area-CodeGen-coreclr

Milestone: -


LclVarDsc* const varDsc = m_compiler->lvaGetDesc(LclNum());
return varDsc->IsAlwaysAliveInMemory();
return varDsc->lvLiveInOutOfHndlr != 0;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked with @SingleAccretion on this fix.

The premise is that IsAlwaysAliveInMemory checks both lvLiveInOutOfHndlr and lvSpillAtSingleDef. The latter is only set in LSRA and shouldn't have any significance with regards to side effect checking since such spills can't interfere.

This solves the inconsistency between the check in lowering and the assert in codegen.

@tannergooding tannergooding merged commit 37ef5fb into dotnet:main Nov 10, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[jitstress] Assertion failed 'isContainable || supportsRegOptional' in 'JIT.HardwareIntrinsics.General.Program:AbsDouble()' during 'Generate code'

2 participants