projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4a60b93
)
If we can't avoid running loop-simplify twice for now, at least avoid running
author
Cameron Zwarich
<zwarich@apple.com>
Thu, 10 Feb 2011 23:53:14 +0000
(23:53 +0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Thu, 10 Feb 2011 23:53:14 +0000
(23:53 +0000)
iv-users twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125318
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 01dcfaf06527f17b200c9eecca7c06993c8e9311..ac4aea2e404eed5adb5b8c4f55f454c473575f4c 100644
(file)
--- 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>();
}