[llvm-branch-commits] [llvm] [AMDGPU] Make SIShrinkInstructions pass return valid changed state (PR #168833)

Vikram Hegde via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Nov 21 07:32:49 PST 2025


================
@@ -580,6 +591,7 @@ bool SIShrinkInstructions::shrinkScalarLogicOp(MachineInstr &MI) const {
     if (Dest->getReg().isVirtual() && SrcReg->isReg()) {
       MRI->setRegAllocationHint(Dest->getReg(), 0, SrcReg->getReg());
       MRI->setRegAllocationHint(SrcReg->getReg(), 0, Dest->getReg());
+      MoveIterator = true;
----------------
vikramRH wrote:

IIUC this was introduced to skip looking for further shrinking and move on with next instruction.

https://github.com/llvm/llvm-project/pull/168833


More information about the llvm-branch-commits mailing list