forked from OSchip/llvm-project
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:
parent
d8e66038f4
commit
97dae4d361
|
@ -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>();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue