summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-23 16:29:41 +0000
committerDan Gohman <gohman@apple.com>2009-02-23 16:29:41 +0000
commit474cecf0e9bca95ab7091a341784550c7eb1e887 (patch)
treec2c212a36f6ae403a05dace3c58de0e1886d9554 /lib
parent53977755e1ef005e6cdee78e93f47306a244b8e1 (diff)
downloadllvm-474cecf0e9bca95ab7091a341784550c7eb1e887.tar.gz
llvm-474cecf0e9bca95ab7091a341784550c7eb1e887.tar.bz2
llvm-474cecf0e9bca95ab7091a341784550c7eb1e887.tar.xz
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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 3e9615c849..1207dbf8e3 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();