-
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
JIT: Remove BBJ_NONE #94239
Merged
Merged
JIT: Remove BBJ_NONE #94239
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7d4cd5a
Fix PR
amanasifkhalid c5af52e
Fix GC-related tp diffs
amanasifkhalid 268d5ee
Address style feedback
amanasifkhalid 9e8d9a2
Merge branch 'main' into bbj_none
amanasifkhalid f3ae61f
Fix new BBJ_NONE
amanasifkhalid e9184d9
Add assert; add BBF_NONE_QUIRK
amanasifkhalid 596e9fe
Faster peephole
amanasifkhalid 7cdd02d
Remove useless if statement
amanasifkhalid 800777d
Fix merge conflict
amanasifkhalid 9a1ff5d
Fix peephole opt
amanasifkhalid 2e91bad
Disallow jump-to-next removal if aligning
amanasifkhalid 466b374
Don't set jump dest label if removing jump to next
amanasifkhalid 6f7d173
Fix x86
amanasifkhalid e6a04d5
Fix merge conflict
amanasifkhalid 43f50ae
Remove BBF_SKIP_JMP; add BasicBlock::CanRemoveJumpToNext
amanasifkhalid 4ea0dd0
Address feedback
amanasifkhalid 0df9fdd
Merge from main
amanasifkhalid 2c8c7a5
Fix BBF_NONE_QUIRK def
amanasifkhalid 722f16a
Fix merge conflict
amanasifkhalid 10f82d4
Accidentally deleted BBF_NONE_QUIRK usage
amanasifkhalid 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5903,7 +5903,10 @@ class Compiler | |
|
||
bool fgIsThrow(GenTree* tree); | ||
|
||
public: | ||
bool fgInDifferentRegions(BasicBlock* blk1, BasicBlock* blk2); | ||
|
||
private: | ||
bool fgIsBlockCold(BasicBlock* block); | ||
|
||
GenTree* fgMorphCastIntoHelper(GenTree* tree, int helper, GenTree* oper); | ||
|
@@ -6483,7 +6486,7 @@ class Compiler | |
{ | ||
if (lpHead->NextIs(lpEntry)) | ||
{ | ||
assert(lpHead->bbFallsThrough()); | ||
assert(lpHead->bbFallsThrough() || lpHead->JumpsToNext()); | ||
assert(lpTop == lpEntry); | ||
return true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated to your PR, but it seems odd to me that we couldn't have a bottom-entered loop where |
||
} | ||
|
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.
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.
Did we ever hit the case in the old code where we had
BBJ_NONE
on the last block?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.
I added an
assert(false)
to that case in the old code to see if I could get it to hit during a SuperPMI replay, and it never hit across all collections. Also in the new code, I added an assert thatBBJ_ALWAYS
has a jump before trying to emit the jump, so that we never have aBBJ_ALWAYS
that "falls into" nothing at the end of the block list -- that also never hit.