Skip to content

Commit 834b820

Browse files
authored
[AMDGPU] Correct pass dependencies for SILowerSGPRSpills (#109937)
Replace unused analysis (VirtRegMap) dependency with the used one (SlotIndexes) Initializes `SlotIndexesWrapperPass` which is used by SILowerSGPRSpills to ensure that legacy pass manager finds it. Removes the initialization for `VirtRegMapWrapperPass` since it is not requested in this pass.
1 parent 9380281 commit 834b820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ char SILowerSGPRSpillsLegacy::ID = 0;
9595
INITIALIZE_PASS_BEGIN(SILowerSGPRSpillsLegacy, DEBUG_TYPE,
9696
"SI lower SGPR spill instructions", false, false)
9797
INITIALIZE_PASS_DEPENDENCY(LiveIntervalsWrapperPass)
98-
INITIALIZE_PASS_DEPENDENCY(VirtRegMapWrapperLegacy)
9998
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass)
99+
INITIALIZE_PASS_DEPENDENCY(SlotIndexesWrapperPass)
100100
INITIALIZE_PASS_END(SILowerSGPRSpillsLegacy, DEBUG_TYPE,
101101
"SI lower SGPR spill instructions", false, false)
102102

0 commit comments

Comments
 (0)