diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-01 23:21:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-01 23:21:38 +0000 |
commit | 62476cceee2dabb65d8370ce33aeb89ae706ebb1 (patch) | |
tree | 51571315bb2ad63f2cf7df6922ee5a23c0ea22d0 | |
parent | ceddbe8e30a46f99a98033c4618c807bf058499a (diff) | |
download | external_llvm-62476cceee2dabb65d8370ce33aeb89ae706ebb1.zip external_llvm-62476cceee2dabb65d8370ce33aeb89ae706ebb1.tar.gz external_llvm-62476cceee2dabb65d8370ce33aeb89ae706ebb1.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
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
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>(); |