aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/StackSlotColoring.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/StackSlotColoring.cpp
parentaaac00a9f6bfd4744466799949018a45ac1f4d55 (diff)
downloadexternal_llvm-1b42ac1ee38e24ff2b2e1fc811246cb2cf8ea1f2.zip
external_llvm-1b42ac1ee38e24ff2b2e1fc811246cb2cf8ea1f2.tar.gz
external_llvm-1b42ac1ee38e24ff2b2e1fc811246cb2cf8ea1f2.tar.bz2
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/StackSlotColoring.cpp')
-rw-r--r--lib/CodeGen/StackSlotColoring.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp
index 1b5d417..c02765d 100644
--- a/lib/CodeGen/StackSlotColoring.cpp
+++ b/lib/CodeGen/StackSlotColoring.cpp
@@ -66,7 +66,8 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LiveStacks>();
- AU.setPreservesAll();
+ AU.addPreservedID(MachineLoopInfoID);
+ AU.addPreservedID(MachineDominatorsID);
MachineFunctionPass::getAnalysisUsage(AU);
}