Use setPreservesAll and setPreservesCFG in CodeGen passes.

llvm-svn: 77754
This commit is contained in:
Dan Gohman
2009-07-31 23:37:33 +00:00
parent 10b8898ac0
commit 0402315d41
17 changed files with 31 additions and 14 deletions

View File

@@ -306,6 +306,7 @@ struct DebugLabelFolder : public MachineFunctionPass {
DebugLabelFolder() : MachineFunctionPass(&ID) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
AU.addPreservedID(MachineLoopInfoID);
AU.addPreservedID(MachineDominatorsID);
MachineFunctionPass::getAnalysisUsage(AU);