[llvm] [AMDGPU] Skip debug instructions when eliminating S_SET_GPR_IDX_ON/OFF (PR #160715)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 25 08:28:04 PDT 2025
================
@@ -299,7 +299,7 @@ bool SIPreEmitPeephole::optimizeSetGPR(MachineInstr &First,
for (MachineBasicBlock::instr_iterator I = std::next(First.getIterator()),
E = MI.getIterator();
I != E; ++I) {
- if (I->isBundle())
+ if (I->isBundle() || I->isDebugInstr())
----------------
jayfoad wrote:
Done for KILL. This is post-RA so I don't think we'll see IMPLICIT_DEF.
https://github.com/llvm/llvm-project/pull/160715
More information about the llvm-commits
mailing list