[llvm] [CodeGen] Preserved additional analyses in StackSlotColoring pass. (PR #93779)
Vikash Gupta via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 04:36:43 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);
----------------
vg0204 wrote:
I have a small doubt, as in this pass SlotIndex analysis is set to be required which implies if available use preserved analysis else compute it (as it is required). So do Indexes in such cas need null check?
https://github.com/llvm/llvm-project/pull/93779
More information about the llvm-commits
mailing list