summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-08-17 20:57:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-08-17 20:57:42 +0000
commite0db9d01d9acc6ae0536d2151d69193ad9961d4b (patch)
treeda070183a314bd4b519de5f0ece7ad56be8475c5 /llvm/lib/CodeGen/MachineCSE.cpp
parent135bcc791bcfd7e78977d7c7280e3c0f355cfaa2 (diff)
downloadbcm5719-llvm-e0db9d01d9acc6ae0536d2151d69193ad9961d4b.tar.gz
bcm5719-llvm-e0db9d01d9acc6ae0536d2151d69193ad9961d4b.zip
Machine CSE preserves CFG. Pass manager was freeing machineloopinfo after machine cse before.
llvm-svn: 111281
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCSE.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp
index 60642d46223..92e2299ec62 100644
--- a/llvm/lib/CodeGen/MachineCSE.cpp
+++ b/llvm/lib/CodeGen/MachineCSE.cpp
@@ -49,6 +49,7 @@ namespace {
AU.setPreservesCFG();
MachineFunctionPass::getAnalysisUsage(AU);
AU.addRequired<AliasAnalysis>();
+ AU.addPreservedID(MachineLoopInfoID);
AU.addRequired<MachineDominatorTree>();
AU.addPreserved<MachineDominatorTree>();
}
OpenPOWER on IntegriCloud