diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 20:57:42 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-08-17 20:57:42 +0000 |
commit | 6542416560589c9cfa6298d2edc73f3350ccf56a (patch) | |
tree | 637ea8dd812a8f3053c25add68446476b8765f18 /lib/CodeGen/MachineCSE.cpp | |
parent | 00d3dda86f825f32277eba8c4206f48fbfc9f584 (diff) | |
download | external_llvm-6542416560589c9cfa6298d2edc73f3350ccf56a.zip external_llvm-6542416560589c9cfa6298d2edc73f3350ccf56a.tar.gz external_llvm-6542416560589c9cfa6298d2edc73f3350ccf56a.tar.bz2 |
Machine CSE preserves CFG. Pass manager was freeing machineloopinfo after machine cse before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCSE.cpp')
-rw-r--r-- | lib/CodeGen/MachineCSE.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineCSE.cpp b/lib/CodeGen/MachineCSE.cpp index 60642d4..92e2299 100644 --- a/lib/CodeGen/MachineCSE.cpp +++ b/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>(); } |