aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.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/LiveDebugVariables.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/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 317d340..79085e5 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -82,7 +82,7 @@ INITIALIZE_PASS_BEGIN(LiveDebugVariablesWrapperLegacy, DEBUG_TYPE,
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass)
INITIALIZE_PASS_DEPENDENCY(LiveIntervalsWrapperPass)
INITIALIZE_PASS_END(LiveDebugVariablesWrapperLegacy, DEBUG_TYPE,
- "Debug Variable Analysis", false, false)
+ "Debug Variable Analysis", false, true)
void LiveDebugVariablesWrapperLegacy::getAnalysisUsage(
AnalysisUsage &AU) const {