aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-01 23:21:38 +0000
committerDan Gohman <gohman@apple.com>2009-07-01 23:21:38 +0000
commitcba21cbf7fe01fcc834e64418982f513d94ca36e (patch)
tree51571315bb2ad63f2cf7df6922ee5a23c0ea22d0 /lib/Transforms
parent1ad58170e3d570da9a7892a572ecdc18881af332 (diff)
downloadexternal_llvm-cba21cbf7fe01fcc834e64418982f513d94ca36e.zip
external_llvm-cba21cbf7fe01fcc834e64418982f513d94ca36e.tar.gz
external_llvm-cba21cbf7fe01fcc834e64418982f513d94ca36e.tar.bz2
Request LCSSA after LoopSimplify. This fixes a problem in which the
PassManager was scheduling LCSSA before LoopSimplify, which does not preserve LCSSA. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 27e377f..577d3cc 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -82,10 +82,10 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<DominatorTree>();
AU.addRequired<ScalarEvolution>();
- AU.addRequiredID(LCSSAID);
AU.addRequiredID(LoopSimplifyID);
AU.addRequired<LoopInfo>();
AU.addRequired<IVUsers>();
+ AU.addRequiredID(LCSSAID);
AU.addPreserved<ScalarEvolution>();
AU.addPreservedID(LoopSimplifyID);
AU.addPreserved<IVUsers>();