Skip to content

Commit 31e1d02

Browse files
committed
Skip all meta instructions
1 parent f8311a3 commit 31e1d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ bool SIPreEmitPeephole::optimizeSetGPR(MachineInstr &First,
299299
for (MachineBasicBlock::instr_iterator I = std::next(First.getIterator()),
300300
E = MI.getIterator();
301301
I != E; ++I) {
302-
if (I->isBundle() || I->isDebugInstr())
302+
if (I->isBundle() || I->isMetaInstruction())
303303
continue;
304304
switch (I->getOpcode()) {
305305
case AMDGPU::S_SET_GPR_IDX_MODE:

0 commit comments

Comments
 (0)