aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-09-13 03:23:21 +0000
committerAndrew Trick <atrick@apple.com>2011-09-13 03:23:21 +0000
commitdd9d758a315e69798c8e36ed5c8b4a23e4585274 (patch)
tree4e52cf8946b5fcdaf570a835d36b918cd5431792
parent603fff39688a4e3a90f62031d523f2e0f9b05722 (diff)
Disable IV rewriting by default. See PR10916.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139579 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
-rw-r--r--test/Transforms/IndVarSimplify/floating-point-iv.ll2
-rw-r--r--test/Transforms/LoopUnroll/scevunroll.ll2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index b5500dec6e..e240c42e36 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -60,7 +60,7 @@ STATISTIC(NumElimIV , "Number of congruent IVs eliminated");
namespace llvm {
cl::opt<bool> EnableIVRewrite(
- "enable-iv-rewrite", cl::Hidden, cl::init(true),
+ "enable-iv-rewrite", cl::Hidden,
cl::desc("Enable canonical induction variable rewriting"));
// Trip count verification can be enabled by default under NDEBUG if we
diff --git a/test/Transforms/IndVarSimplify/floating-point-iv.ll b/test/Transforms/IndVarSimplify/floating-point-iv.ll
index e334f069b8..266eebd5bb 100644
--- a/test/Transforms/IndVarSimplify/floating-point-iv.ll
+++ b/test/Transforms/IndVarSimplify/floating-point-iv.ll
@@ -87,6 +87,6 @@ exit:
ret void
; CHECK: @test5
-; CHECK: icmp eq i32 {{.*}}, 10
+; CHECK: icmp slt i32 {{.*}}, 0
; CHECK-NEXT: br i1
}
diff --git a/test/Transforms/LoopUnroll/scevunroll.ll b/test/Transforms/LoopUnroll/scevunroll.ll
index 9971f310ec..99b3a7d861 100644
--- a/test/Transforms/LoopUnroll/scevunroll.ll
+++ b/test/Transforms/LoopUnroll/scevunroll.ll
@@ -67,7 +67,7 @@ exit2:
; SCEV properly unrolls multi-exit loops.
;
; CHECK: @multiExit
-; CHECK: getelementptr i32* %base, i64 10
+; CHECK: getelementptr i32* %base, i32 10
; CHECK-NEXT: load i32*
; CHECK: br i1 false, label %l2.10, label %exit1
; CHECK: l2.10: