-
Notifications
You must be signed in to change notification settings - Fork 5.3k
JIT: Add explicit successor for BBJ_COND false branch #95773
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
7075361
Introduce bbNormalJumpDest
amanasifkhalid edcd975
Replace Next() with GetNormalJumpDest()
amanasifkhalid bdc886d
Replace NextIs() with HasNormalJumpTo()
amanasifkhalid 4c71330
Style
amanasifkhalid bdcf9ea
Update TODO comments
amanasifkhalid 4e94533
Style
amanasifkhalid 3855094
Add comment explaining assert
amanasifkhalid f630b5d
Rename bbNormalJumpDest to bbFalseTarget
amanasifkhalid 5be6ed2
Rename bbJumpDest to bbTarget
amanasifkhalid a286d86
Rename SetJumpKindAndTarget variants
amanasifkhalid 9ff966b
Rename bbJumpKind
amanasifkhalid e632217
Rename bbJumpOffs
amanasifkhalid dcf7ce9
Rename bbJumpSwt
amanasifkhalid 07ff2dd
Rename bbJumpEhf
amanasifkhalid e2ab378
Rename HasJumpTo
amanasifkhalid 92139e3
Rename method args, dspJumpKind
amanasifkhalid 6802c17
Introduce getters/setters/checkers for bbTrueTarget
amanasifkhalid 2bddac2
Replace GetTarget with GetTrueTarget for BBJ_COND
amanasifkhalid 32174ab
Replace SetTarget with SetTrueTarget for BBJ_COND
amanasifkhalid 5cbd2c4
Replace TargetIs with TrueTargetIs for BBJ_COND
amanasifkhalid 69cbbc7
Style
amanasifkhalid a35bd40
Fix comment
amanasifkhalid f45a824
Fix bbNext/bbTarget access for BBJ_COND in BBSuccList
amanasifkhalid 2e5fc28
Split out SetSwtKindAndTarget and SetEhfKindAndTarget
amanasifkhalid a8f3ffd
Add SetCondKindAndTarget
amanasifkhalid b1de3c6
Rename to SetCond
amanasifkhalid a038073
Rename to SetSwitch
amanasifkhalid 3625c39
Rename to SetEhf
amanasifkhalid fbd3943
Rename to GetSwitchTarget (for consistency)
amanasifkhalid ed0b149
Rename GetSwitchTarget > GetSwitchTargets
amanasifkhalid 7f1fbb7
Rename GetEhfTarget > GetEhfTargets
amanasifkhalid e453580
Rename bbSwtTarget > bbSwtTargets
amanasifkhalid c78e766
Rename bbEhfTarget/SetEhfTarget
amanasifkhalid f445e29
Add asserts
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
Add SetCondKindAndTarget
- Loading branch information
commit a8f3ffd8b813d26d4e42e1963b68bf22a858d754
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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.
This doesn't exactly roll off the tongue -- why not
SetCond? Eventually we would hopefully end up with justSetCond(BasicBlock* falseTarget, BasicBlock* trueTarget),SetSwitch(BBswtDesc* swtTarget)and so on.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 can shorten the names of all the
SetKind...variants. Would you be ok withSetKindAndTargetbeing left as-is? I'm not sure how we can intuitively shorten that one while still conveying it's setting the jump kind and target.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.
Yes, I think
SetKindAndTargetmakes sense -- it's sort of a low-level operation, while these other ones are more high-level.