Repository navigation
[AMDGPU][Scheduler] Restore local spill rejection in occupancy mode #233979
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,44 @@ | ||||||
| # RUN: llc -mtriple=amdgpu9.00-amd-amdhsa -start-before=machine-scheduler -stop-after=greedy,2 -verify-machineinstrs -o - %s | FileCheck %s | ||||||
|
Contributor
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.
Suggested change
|
||||||
|
|
||||||
| # Check that rematerialization for higher occupancy does not introduce spills. | ||||||
|
|
||||||
| # CHECK-LABEL: name: remat_occupancy_no_spill | ||||||
| # CHECK-NOT: SI_SPILL_ | ||||||
|
Contributor
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. Don't use -NOT checks, check what is emitted |
||||||
| # CHECK: S_ENDPGM | ||||||
|
|
||||||
| --- | | ||||||
| define amdgpu_kernel void @remat_occupancy_no_spill() #0 { | ||||||
| ret void | ||||||
| } | ||||||
|
|
||||||
| attributes #0 = { "amdgpu-waves-per-eu"="9,10" "amdgpu-num-vgpr"="25" } | ||||||
|
Contributor
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. Don't introduce new uses of amdgpu-num-vgpr, it's in the middle of removal
Contributor
Author
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. I’ve addressed all three comments on the regression test. Could you take another look at the test changes, including the expectation updates in machine-scheduler-sink-trivial-remats.mir and machine-scheduler-rematerialization-scoring.mir? |
||||||
| ... | ||||||
| --- | ||||||
| name: remat_occupancy_no_spill | ||||||
| tracksRegLiveness: true | ||||||
| machineFunctionInfo: | ||||||
| isEntryFunction: true | ||||||
| stackPtrOffsetReg: '$sgpr32' | ||||||
| body: | | ||||||
| bb.0: | ||||||
| successors: %bb.1 | ||||||
|
|
||||||
| S_NOP 0, implicit-def %live16:vreg_512, implicit-def %live5:vreg_160 | ||||||
| %loaded:vreg_64 = DS_READ2_B32_gfx9 %live5.sub0, 0, 1, 0, implicit $exec :: (load (s64), align 4, addrspace 3) | ||||||
| %address:vgpr_32 = V_ADD_U32_e64 16, %live5.sub0, 0, implicit $exec | ||||||
|
|
||||||
| bb.1: | ||||||
| successors: %bb.2 | ||||||
|
|
||||||
| %converted0:vgpr_32 = nofpexcept V_CVT_F32_I32_e32 %loaded.sub0, implicit $exec, implicit $mode | ||||||
| DS_WRITE_B32_gfx9 %live5.sub0, %converted0, 8, 0, implicit $exec :: (store (s32), addrspace 3) | ||||||
|
|
||||||
| %converted1:vgpr_32 = nofpexcept V_CVT_F32_I32_e32 %loaded.sub1, implicit $exec, implicit $mode | ||||||
| DS_WRITE_B32_gfx9 %live5.sub0, %converted1, 12, 0, implicit $exec :: (store (s32), addrspace 3) | ||||||
| DS_WRITE_B32_gfx9 %address, %loaded.sub0, 0, 0, implicit $exec :: (store (s32), addrspace 3) | ||||||
| DS_WRITE_B32_gfx9 %address, %loaded.sub1, 4, 0, implicit $exec :: (store (s32), addrspace 3) | ||||||
|
|
||||||
| bb.2: | ||||||
| S_NOP 0, implicit %live16, implicit %live5, implicit %loaded | ||||||
| S_ENDPGM 0 | ||||||
| ... | ||||||
Uh oh!
There was an error while loading. Please reload this page.