summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commit42987f528a5f83276bb205a8aa7e6731c9691324 (patch)
tree7c2e521ac74f62c9f6eed9b791d48aef55c73e4d /llvm/lib/Transforms
parent59bf35e44af37567ae94db37dc5020cfdf11fe64 (diff)
downloadbcm5719-llvm-42987f528a5f83276bb205a8aa7e6731c9691324.tar.gz
bcm5719-llvm-42987f528a5f83276bb205a8aa7e6731c9691324.zip
IndVarSimplify preserves ScalarEvolution. In the
-std-compile-opts sequence, this avoids the need for ScalarEvolution to be rerun before LoopDeletion. llvm-svn: 65318
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 3e9615c849a..1207dbf8e34 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud