mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
If we can't avoid running loop-simplify twice for now, at least avoid running
iv-users twice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a60b932a2
commit
2c2b933037
@ -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
Block a user