-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[AMDGPU] Add commute for some VOP3 inst #121326
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
arsenm
merged 35 commits into
llvm:main
from
Shoreshen:Add-isCommutable-attribute-to-VOP3-instructions
Jan 22, 2025
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
f0877bb
add commute for some VOP3 inst, allow commute for both inline constan…
Shoreshen ae5f1e8
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen df6903c
Merge remote-tracking branch 'origin/main' into Add-isCommutable-attr…
Shoreshen ada83d6
add inline constant case & merge main
Shoreshen c599af0
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 3a83ae5
fix lit change
Shoreshen 5c9d065
fix lit change
Shoreshen d3f00dc
Update llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Shoreshen 0e60298
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 707474f
fix comments
Shoreshen 79219d1
fix
Shoreshen 288ead2
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 4becc58
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 53b370a
Add legal check for swap
Shoreshen 0b746a8
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 785921f
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 6955a86
Merge remote-tracking branch 'origin/main' into Add-isCommutable-attr…
Shoreshen 5e15e72
add tests & merge_main
Shoreshen 004a82d
fix lit.cfg.py
Shoreshen dc2739f
fix lit.cfg.py
Shoreshen 378c02c
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 49ae569
Merge remote-tracking branch 'origin/main' into Add-isCommutable-attr…
Shoreshen 161a2b9
adjust comment & merge main
Shoreshen 4d569ae
Merge remote-tracking branch 'origin/main' into Add-isCommutable-attr…
Shoreshen 1689c1e
adjust case & merge main
Shoreshen 328e566
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 9faf423
fix inconsistent capitalization
Shoreshen 19b8ad4
fix test case
Shoreshen cc3a125
Merge remote-tracking branch 'origin/main' into Add-isCommutable-attr…
Shoreshen 0a89dc9
merge main
Shoreshen d8e6cb7
fix format
Shoreshen 3c7bd89
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen bf1da57
remove special handling for VOPD, since no commutable VOPD instruction
Shoreshen 789092d
Merge branch 'llvm:main' into Add-isCommutable-attribute-to-VOP3-inst…
Shoreshen 6c35280
Merge branch 'main' into Add-isCommutable-attribute-to-VOP3-instructions
Shoreshen 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ name: not_shrink_icmp | |
body: | | ||
bb.0: | ||
; GCN-LABEL: name: not_shrink_icmp | ||
; GCN: S_CMP_GT_I32 1, 65, implicit-def $scc | ||
; GCN: S_CMP_LT_I32 65, 1, implicit-def $scc | ||
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. Pointless swap but probably not this patch's problem |
||
S_CMP_GT_I32 1, 65, implicit-def $scc | ||
... |
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.
This !MRI.reservedRegsFrozen() doesn't make any sense but all of this code looks copied directly from existing code
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.
Yep, I just wrap it from the isoperandlegal function to avoid duplicate code. Should I try to remove it??
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.
Not here