aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LiveStackAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-22 22:21:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-22 22:21:38 +0000
commit1b42ac1ee38e24ff2b2e1fc811246cb2cf8ea1f2 (patch)
tree781ba506e5a3f0c1b14a4e3ae12c3510d6f49428 /lib/CodeGen/LiveStackAnalysis.cpp
parentaaac00a9f6bfd4744466799949018a45ac1f4d55 (diff)
downloadexternal_llvm-1b42ac1ee38e24ff2b2e1fc811246cb2cf8ea1f2.tar.gz
external_llvm-1b42ac1ee38e24ff2b2e1fc811246cb2cf8ea1f2.tar.bz2
external_llvm-1b42ac1ee38e24ff2b2e1fc811246cb2cf8ea1f2.zip
Instead of setPreservesAll, just mark them preseving machine loop info and machine dominators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveStackAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveStackAnalysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveStackAnalysis.cpp b/lib/CodeGen/LiveStackAnalysis.cpp
index 2baf699c66..0670570ddf 100644
--- a/lib/CodeGen/LiveStackAnalysis.cpp
+++ b/lib/CodeGen/LiveStackAnalysis.cpp
@@ -25,7 +25,8 @@ char LiveStacks::ID = 0;
static RegisterPass<LiveStacks> X("livestacks", "Live Stack Slot Analysis");
void LiveStacks::getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
+ AU.addPreservedID(MachineLoopInfoID);
+ AU.addPreservedID(MachineDominatorsID);
MachineFunctionPass::getAnalysisUsage(AU);
}