diff options
author | Akshat Oke <Akshat.Oke@amd.com> | 2024-12-06 15:25:54 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 15:25:54 +0530 |
commit | 49abcd207fe26ea0fc7170e66f1b0b22f1d853d3 (patch) | |
tree | 7bddbc48bfd100059b0e25206d70d21bfff18db2 /llvm/lib/CodeGen/LiveIntervals.cpp | |
parent | 3d7260b44168cfc8d49e84b884ba0f403d23c1b6 (diff) | |
download | llvm-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.cpp | 2 |
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(); |