We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9654df3 commit c3e334fCopy full SHA for c3e334f
llvm/lib/Target/AMDGPU/AMDGPUSetWavePriority.cpp
@@ -200,12 +200,12 @@ bool AMDGPUSetWavePriority::runOnMachineFunction(MachineFunction &MF) {
200
}
201
202
for (MachineBasicBlock *MBB : PriorityLoweringBlocks) {
203
- BuildSetprioMI(
204
- *MBB,
205
- MBBInfos[MBB].LastVMEMLoad
206
- ? std::next(MachineBasicBlock::iterator(MBBInfos[MBB].LastVMEMLoad))
207
- : MBB->begin(),
208
- LowPriority);
+ MachineInstr *LastVMEMLoad = MBBInfos[MBB].LastVMEMLoad;
+ BuildSetprioMI(*MBB,
+ LastVMEMLoad
+ ? std::next(MachineBasicBlock::iterator(LastVMEMLoad))
+ : MBB->begin(),
+ LowPriority);
209
210
211
return true;
0 commit comments