Don't recalculate the loop info and loop dominators analyses if they're

preserved.

llvm-svn: 45596
This commit is contained in:
Bill Wendling
2008-01-04 20:54:55 +00:00
parent 2bd541c5ff
commit 0c209430b4
8 changed files with 34 additions and 6 deletions

View File

@@ -51,6 +51,8 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addPreserved<LiveVariables>();
AU.addPreservedID(MachineLoopInfoID);
AU.addPreservedID(MachineDominatorsID);
MachineFunctionPass::getAnalysisUsage(AU);
}