aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveIntervals.cpp
diff options
context:
space:
mode:
authorAkshat Oke <Akshat.Oke@amd.com>2024-12-06 15:25:54 +0530
committerGitHub <noreply@github.com>2024-12-06 15:25:54 +0530
commit49abcd207fe26ea0fc7170e66f1b0b22f1d853d3 (patch)
tree7bddbc48bfd100059b0e25206d70d21bfff18db2 /llvm/lib/CodeGen/LiveIntervals.cpp
parent3d7260b44168cfc8d49e84b884ba0f403d23c1b6 (diff)
downloadllvm-49abcd207fe26ea0fc7170e66f1b0b22f1d853d3.zip
llvm-49abcd207fe26ea0fc7170e66f1b0b22f1d853d3.tar.gz
llvm-49abcd207fe26ea0fc7170e66f1b0b22f1d853d3.tar.bz2
[CodeGen][PM] Initialize analyses with isAnalysis=true (#118779)
Analyses should be marked as analyses. Otherwise they are prone to get ignored by the legacy analysis cache mechanism and get scheduled redundantly.
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervals.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp
index f9ee6e4..f38527a 100644
--- a/llvm/lib/CodeGen/LiveIntervals.cpp
+++ b/llvm/lib/CodeGen/LiveIntervals.cpp
@@ -83,7 +83,7 @@ INITIALIZE_PASS_BEGIN(LiveIntervalsWrapperPass, "liveintervals",
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass)
INITIALIZE_PASS_DEPENDENCY(SlotIndexesWrapperPass)
INITIALIZE_PASS_END(LiveIntervalsWrapperPass, "liveintervals",
- "Live Interval Analysis", false, false)
+ "Live Interval Analysis", false, true)
bool LiveIntervalsWrapperPass::runOnMachineFunction(MachineFunction &MF) {
LIS.Indexes = &getAnalysis<SlotIndexesWrapperPass>().getSI();