summaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-14 14:26:23 +0000
committerDan Gohman <gohman@apple.com>2009-07-14 14:26:23 +0000
commit1b65253da688a0ff0c41b5af185708707fa931c9 (patch)
tree99256c821aa7995e9702c6bda0566c09c129949f /lib/Transforms
parenta653fc5f6bdfa016ba703c9b6d520b697c987517 (diff)
downloadexternal_llvm-1b65253da688a0ff0c41b5af185708707fa931c9.zip
external_llvm-1b65253da688a0ff0c41b5af185708707fa931c9.tar.gz
external_llvm-1b65253da688a0ff0c41b5af185708707fa931c9.tar.bz2
Require IVUsers after LCSSA, since LCSSA does not preserve IVUsers.
This results in the pass manager running IVUsers only once for indvars, instead of twice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 911545d..9fb4d6b 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -82,15 +82,15 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<DominatorTree>();
+ AU.addRequired<LoopInfo>();
AU.addRequired<ScalarEvolution>();
AU.addRequiredID(LoopSimplifyID);
- AU.addRequired<LoopInfo>();
- AU.addRequired<IVUsers>();
AU.addRequiredID(LCSSAID);
+ AU.addRequired<IVUsers>();
AU.addPreserved<ScalarEvolution>();
AU.addPreservedID(LoopSimplifyID);
- AU.addPreserved<IVUsers>();
AU.addPreservedID(LCSSAID);
+ AU.addPreserved<IVUsers>();
AU.setPreservesCFG();
}