Add that this preserves some analyses.

llvm-svn: 45573
This commit is contained in:
Bill Wendling 2008-01-04 08:48:49 +00:00
parent 66470d02c3
commit 3bf5603ce4
1 changed files with 3 additions and 1 deletions

View File

@ -53,10 +53,12 @@ namespace {
/// FIXME: Loop preheaders?
///
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
MachineFunctionPass::getAnalysisUsage(AU);
AU.setPreservesCFG();
AU.addRequired<MachineLoopInfo>();
AU.addRequired<MachineDominatorTree>();
AU.addPreserved<MachineLoopInfo>();
AU.addPreserved<MachineDominatorTree>();
MachineFunctionPass::getAnalysisUsage(AU);
}
private:
/// VisitAllLoops - Visit all of the loops in depth first order and try to