diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-23 16:29:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-23 16:29:41 +0000 |
commit | 474cecf0e9bca95ab7091a341784550c7eb1e887 (patch) | |
tree | c2c212a36f6ae403a05dace3c58de0e1886d9554 /lib | |
parent | 53977755e1ef005e6cdee78e93f47306a244b8e1 (diff) | |
download | external_llvm-474cecf0e9bca95ab7091a341784550c7eb1e887.zip external_llvm-474cecf0e9bca95ab7091a341784550c7eb1e887.tar.gz external_llvm-474cecf0e9bca95ab7091a341784550c7eb1e887.tar.bz2 |
IndVarSimplify preserves ScalarEvolution. In the
-std-compile-opts sequence, this avoids the need for ScalarEvolution to
be rerun before LoopDeletion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 3e9615c..1207dbf 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -81,6 +81,7 @@ namespace { AU.addRequiredID(LCSSAID); AU.addRequiredID(LoopSimplifyID); AU.addRequired<LoopInfo>(); + AU.addPreserved<ScalarEvolution>(); AU.addPreservedID(LoopSimplifyID); AU.addPreservedID(LCSSAID); AU.setPreservesCFG(); |