[llvm] [CodeGen] Preserved additional analyses in StackSlotColoring pass. (PR #93779)
Vikash Gupta via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 03:11:12 PDT 2024
================
@@ -152,6 +154,14 @@ namespace {
AU.addRequired<MachineBlockFrequencyInfo>();
AU.addPreserved<MachineBlockFrequencyInfo>();
AU.addPreservedID(MachineDominatorsID);
+
+ // In some Target's pipeline, register allocation (RA) might be
+ // split into multiple phases based on register class. So, this pass
+ // may be invoked multiple times requiring it to save these analyses to be
+ // used by RA later.
+ AU.addPreserved<LiveIntervals>();
----------------
vg0204 wrote:
addPreserved<SlotIndexes> was already there before. As for LiveIntervals, it would be needed to be preserved for maybe the upcoming regAlloc pass for remaining register classes, else it is being re-computed, which somehow creating problem.
https://github.com/llvm/llvm-project/pull/93779
More information about the llvm-commits
mailing list