diff options
| author | Dan Gohman <gohman@apple.com> | 2009-07-14 14:26:23 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-07-14 14:26:23 +0000 |
| commit | e141364e5c36aa2994e31444c336d3bff7887eaf (patch) | |
| tree | b9fbeac8def03920277b1459f64104e1bc8c8ee4 /llvm/lib/Transforms | |
| parent | 92b4c7f355137bbe198e39607a2bcf5a038bc3bc (diff) | |
| download | bcm5719-llvm-e141364e5c36aa2994e31444c336d3bff7887eaf.tar.gz bcm5719-llvm-e141364e5c36aa2994e31444c336d3bff7887eaf.zip | |
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.
llvm-svn: 75633
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 911545d86f3..9fb4d6bd537 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/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(); } |

