-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spill single-def variable at definition to avoid further spilling #54345
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d5dc108
Print single-def
kunalspathak 5176e85
Rename lvEhWriteThruCandidate->lvSingleDefRegCandidate, introduce isS…
kunalspathak 3262f3f
Introduce singleDefSpillAfter
kunalspathak bed12a0
jit format
kunalspathak 62b1d57
some fixes
kunalspathak 4563709
wip
kunalspathak 4707548
Add check of isSingleDef in validateInterval()
kunalspathak 2d67df2
Make isSingleDef during buildIntervals
kunalspathak 12ef329
minor fix in lclvars.cpp
kunalspathak a5dbc39
some fixes after self CR
kunalspathak 803e59e
Updated some comments
kunalspathak 1171e15
Remove lvSpillAtSingleDef from some asserts
kunalspathak d792cfc
Use singleDefSpill information in getWeight()
kunalspathak 25770df
Remove lvSpillAtSingleDef from some more checks
kunalspathak 4d3b6b6
Mark lvSpillAtSingleDef whenever refPosition->singleDefSpill==true
kunalspathak 22a1a7d
Add TODO for SingleDefVarCandidate
kunalspathak e3383c1
Some notes on setting singleDefSpill
kunalspathak 8facc97
jit format
kunalspathak d3e03a6
review feedback
kunalspathak 649c6c4
review comments
kunalspathak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it mean that
lvSingleDefRegCandidate==true
does not imply that the variable has a single def forlvSpillAtSingleDef
purpose?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct.
lvSingleDefRegCandidate
is only used so we can decide if we should enregister EH-var or not (which happens in earlier phase). Things change after that and we can't rely on that information. The best safe place I thought about checking for single-def is while building intervals. I wanted to do it for EH-var as well, but unfortunately we need that information before LSRA.