-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[RISC-V] Move comparison transformations from codegen to lowering #118270
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 all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
0c89442
Move FP comparisons swap & reverse to lowering
tomeksowi 6d19c64
Lower integer comparisons
tomeksowi 369144e
Sign-extend in lowering, remove logic from codegen
tomeksowi 7f9d38e
a - C ---> a + (-C), also contain zero as first argument
tomeksowi b56a7fd
Remove other ops from IsContainableImmed
tomeksowi 9434fc1
Cleanup LE|GE transformations
tomeksowi 0296573
Factor out sign-extension
tomeksowi 1bae2d7
Factor out LowerAndReverseIntegerCompare
tomeksowi a501391
Move compare-and-branch logic to lowering
tomeksowi 2a3543e
Fix perf regressions in int comparisons when stored to a register
tomeksowi bceb8fa
Negate via XOR 1, NOT can be ambigugous
tomeksowi 2dffd31
Add more known 32-bit extending nodes
tomeksowi 8160b47
handle 1st branch arg contained in BBJ_COND lsra
tomeksowi dd8615d
Don't comparison transformations which include altering the constant …
tomeksowi cb9d110
LowerNode after converting UDIV into GE
tomeksowi c8ed91c
Don't zero-extend uint MUL, the natural state is to leave it sign-ext…
tomeksowi 3ca9be2
First argument of a comparison can also be contained -- when it's zero
tomeksowi 170906c
cleanup
tomeksowi b038856
Fix branch asserts
tomeksowi 1e95bf9
assert branch regs are general
tomeksowi 2cfd860
Fix jtrue assert
tomeksowi fd9142e
Lower the comparison again after reversal in OptimizeConstCompare
tomeksowi 95b38b7
fix windows build
tomeksowi 77b4a3e
Merge branch 'main' into cmp-codegen-to-lowering
tomeksowi a08f580
fix windows build
tomeksowi 1115b3c
Merge branch 'main' into cmp-codegen-to-lowering
tomeksowi 1f08857
Revert to doing FP comparison swaps and reversals in codegen
tomeksowi 3a411e5
Revert back to doing swapping and reversing for integer comparisons i…
tomeksowi f9228bd
Remove double lowering
tomeksowi 624e885
Revert swapping back to codegen for JCMP
tomeksowi 5f13399
Add GE and LE to immediates
tomeksowi 6ed4268
Move EQ|NE(a, 0) back to codegen
tomeksowi 97f90dd
Handle a <= 0 ---> a < 1 in codegen
tomeksowi a6e5458
Merge branch 'main' into cmp-codegen-to-lowering
tomeksowi cb6d150
Remove general optimizations
tomeksowi fd28d15
Bring back zero register op1 in branches
tomeksowi 7834058
Bring back a - C ---> a + (-C)
tomeksowi da41847
Jit coding conventions
tomeksowi 4a96957
format
tomeksowi 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.
Uh oh!
There was an error while loading. Please reload this page.