[llvm] [AMDGPU][Scheduler] Fix inconsistent MI slots after rematerialization revert (PR #180646)

Lucas Ramirez via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 18:09:28 PST 2026


================
@@ -2970,6 +2972,7 @@ void PreRARematStage::rematerialize(const RematReg &Remat,
         MO.setReg(Register());
       }
     }
+    DAG.LIS->RemoveMachineInstrFromMaps(DefMI);
----------------
lucas-rami wrote:

Thanks for the catch, it's indeed not necessary to regenerate the slot index manually in the case of a schedule revert. I deleted the map updates.

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


More information about the llvm-commits mailing list