If we can't avoid running loop-simplify twice for now, at least avoid running

iv-users twice.

llvm-svn: 125318
This commit is contained in:
Cameron Zwarich 2011-02-10 23:53:14 +00:00
parent d8e66038f4
commit 97dae4d361
1 changed files with 3 additions and 0 deletions

View File

@ -3824,6 +3824,9 @@ void LoopStrengthReduce::getAnalysisUsage(AnalysisUsage &AU) const {
AU.addPreserved<DominatorTree>();
AU.addRequired<ScalarEvolution>();
AU.addPreserved<ScalarEvolution>();
// Requiring LoopSimplify a second time here prevents IVUsers from running
// twice, since LoopSimplify was invalidated by running ScalarEvolution.
AU.addRequiredID(LoopSimplifyID);
AU.addRequired<IVUsers>();
AU.addPreserved<IVUsers>();
}