diff options
| author | Andrew Trick <atrick@apple.com> | 2011-09-15 20:58:37 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2011-09-15 20:58:37 +0000 |
| commit | 74111ee07f10364da57c5f575057ac5c765552f7 (patch) | |
| tree | 377f097655a660ef8f8d929c18c020d3b4e9ea69 /llvm | |
| parent | 4e9116404923d24849eb4d30bb63052cce584602 (diff) | |
| download | bcm5719-llvm-74111ee07f10364da57c5f575057ac5c765552f7.tar.gz bcm5719-llvm-74111ee07f10364da57c5f575057ac5c765552f7.zip | |
Reapply r139759. Disable IV rewriting by default. See PR10916.
llvm-svn: 139842
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/Transforms/IndVarSimplify/floating-point-iv.ll | 2 | ||||
| -rw-r--r-- | llvm/test/Transforms/LoopUnroll/scevunroll.ll | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index b5500dec6e7..e240c42e36c 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/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/llvm/test/Transforms/IndVarSimplify/floating-point-iv.ll b/llvm/test/Transforms/IndVarSimplify/floating-point-iv.ll index e334f069b81..266eebd5bb6 100644 --- a/llvm/test/Transforms/IndVarSimplify/floating-point-iv.ll +++ b/llvm/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/llvm/test/Transforms/LoopUnroll/scevunroll.ll b/llvm/test/Transforms/LoopUnroll/scevunroll.ll index 9971f310ec4..99b3a7d8619 100644 --- a/llvm/test/Transforms/LoopUnroll/scevunroll.ll +++ b/llvm/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: |

