[llvm] [CodeGen] Preserved additional analyses in StackSlotColoring pass. (PR #93779)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 05:23:02 PDT 2024
================
@@ -496,8 +506,10 @@ bool StackSlotColoring::RemoveDeadStores(MachineBasicBlock* MBB) {
++I;
}
- for (MachineInstr *MI : toErase)
+ for (MachineInstr *MI : toErase) {
MI->eraseFromParent();
+ Indexes->removeMachineInstrFromMaps(*MI);
----------------
arsenm wrote:
You should remove from the map *before* erasing the instruction
https://github.com/llvm/llvm-project/pull/93779
More information about the llvm-commits
mailing list