aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/VirtRegMap.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/VirtRegMap.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/VirtRegMap.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 1352102..b28c746 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -60,7 +60,7 @@ STATISTIC(NumIdCopies, "Number of identity moves eliminated after rewriting");
char VirtRegMapWrapperLegacy::ID = 0;
INITIALIZE_PASS(VirtRegMapWrapperLegacy, "virtregmap", "Virtual Register Map",
- false, false)
+ false, true)
void VirtRegMap::init(MachineFunction &mf) {
MRI = &mf.getRegInfo();