-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[AMDGPU] AMDGPUPromoteAlloca: increase default max-regs to 32 #155076
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,16 +150,17 @@ define amdgpu_cs void @with_spills() #0 { | |
| ret void | ||
| } | ||
|
|
||
| define amdgpu_cs void @realign_stack(<32 x i32> %x) #0 { | ||
| define amdgpu_cs void @realign_stack(<33 x i32> %x) #0 { | ||
| ; CHECK-LABEL: realign_stack: | ||
| ; CHECK: ; %bb.0: | ||
| ; CHECK-NEXT: s_getreg_b32 s33, hwreg(HW_REG_HW_ID2, 8, 2) | ||
| ; CHECK-NEXT: s_mov_b32 s1, callee@abs32@hi | ||
| ; CHECK-NEXT: s_cmp_lg_u32 0, s33 | ||
| ; CHECK-NEXT: s_mov_b32 s0, callee@abs32@lo | ||
| ; CHECK-NEXT: s_cmovk_i32 s33, 0x200 | ||
| ; CHECK-NEXT: s_movk_i32 s32, 0x100 | ||
| ; CHECK-NEXT: s_clause 0x7 | ||
| ; CHECK-NEXT: s_movk_i32 s32, 0x180 | ||
| ; CHECK-NEXT: s_clause 0x8 | ||
| ; CHECK-NEXT: scratch_store_b32 off, v32, s33 offset:128 | ||
| ; CHECK-NEXT: scratch_store_b128 off, v[28:31], s33 offset:112 | ||
| ; CHECK-NEXT: scratch_store_b128 off, v[24:27], s33 offset:96 | ||
| ; CHECK-NEXT: scratch_store_b128 off, v[20:23], s33 offset:80 | ||
|
|
@@ -169,12 +170,12 @@ define amdgpu_cs void @realign_stack(<32 x i32> %x) #0 { | |
| ; CHECK-NEXT: scratch_store_b128 off, v[4:7], s33 offset:16 | ||
| ; CHECK-NEXT: scratch_store_b128 off, v[0:3], s33 | ||
| ; CHECK-NEXT: v_mov_b32_e32 v0, 0x47 | ||
| ; CHECK-NEXT: s_cmovk_i32 s32, 0x300 | ||
| ; CHECK-NEXT: s_cmovk_i32 s32, 0x380 | ||
| ; CHECK-NEXT: s_swappc_b64 s[30:31], s[0:1] | ||
| ; CHECK-NEXT: s_alloc_vgpr 0 | ||
| ; CHECK-NEXT: s_endpgm | ||
| %v = alloca <32 x i32>, align 128, addrspace(5) | ||
| store <32 x i32> %x, ptr addrspace(5) %v | ||
| %v = alloca <33 x i32>, align 128, addrspace(5) | ||
| store <33 x i32> %x, ptr addrspace(5) %v | ||
|
||
| call amdgpu_gfx void @callee(i32 71) | ||
| ret void | ||
| } | ||
|
|
||
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.
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.
These cases probably should have been defeated through volatile or adding the flag but I guess it doesn't really matter