Repository navigation
JIT: Reset last-use flag for live defs in liveness - #121553
Merged
Merged
Conversation
We would leave `GTF_VAR_DEATH` set if it had already been set on the node from a previous run of liveness.
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes issue #121552 by ensuring the GTF_VAR_DEATH flag is properly reset during liveness analysis when it may run multiple times. The fix addresses a case where the flag could remain set from a previous liveness analysis run, leading to incorrect behavior.
Key Changes:
- Added code to clear
GTF_VAR_DEATHflag infgComputeLifeTrackedLocalDefwhen a variable is determined to be live - This mirrors the existing pattern already present in the companion function
fgComputeLifeTrackedLocalUse
Member
Author
|
PTAL @dotnet/jit-contrib. We have this kind of flag clearing in other places in liveness, but looks like this place missed it. |
AndyAyersMS
approved these changes
Nov 12, 2025
This was referenced Nov 12, 2025
Open
Member
Author
|
/ba-g Timeouts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We would leave
GTF_VAR_DEATHset if it had already been set on the node from a previous run of liveness.In the issue that resulted in
TreeLifeUpdatercomputing the wrong liveness set resulting in us not saving a live local around a suspension.Fix #121552