diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-22 22:21:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-22 22:21:38 +0000 |
commit | 962c2cf17a5037893e0cd6f9f724ce01f83906d6 (patch) | |
tree | 295239e379c5b0cbe79aa80c52a49d0c2a2804f3 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 3276416fa4bf1b567dc02588f76ef07bf8bdbbc4 (diff) | |
download | bcm5719-llvm-962c2cf17a5037893e0cd6f9f724ce01f83906d6.tar.gz bcm5719-llvm-962c2cf17a5037893e0cd6f9f724ce01f83906d6.zip |
Instead of setPreservesAll, just mark them preseving machine loop info and machine dominators.
llvm-svn: 56475
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 9843ff279a8..a83da0a232a 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -14,6 +14,7 @@ #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineLocation.h" +#include "llvm/CodeGen/Passes.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetOptions.h" @@ -2014,7 +2015,8 @@ struct DebugLabelFolder : public MachineFunctionPass { DebugLabelFolder() : MachineFunctionPass(&ID) {} virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.setPreservesAll(); + AU.addPreservedID(MachineLoopInfoID); + AU.addPreservedID(MachineDominatorsID); MachineFunctionPass::getAnalysisUsage(AU); } |