diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-02-10 23:53:14 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-02-10 23:53:14 +0000 |
commit | 2c2b933037ecd5a0ebcfa3077606892802c04a29 (patch) | |
tree | e4ea3641d528ed549c1085200086966e174e70d5 /lib | |
parent | 4a60b932a279b3f5934a274f7fe4535026c5aed1 (diff) | |
download | llvm-2c2b933037ecd5a0ebcfa3077606892802c04a29.tar.gz llvm-2c2b933037ecd5a0ebcfa3077606892802c04a29.tar.bz2 llvm-2c2b933037ecd5a0ebcfa3077606892802c04a29.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 01dcfaf065..ac4aea2e40 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -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>(); } |