mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
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
9d8ab7d0f7
commit
38343ff97c
@ -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…
x
Reference in New Issue
Block a user