[llvm-commits] [llvm] r139579 - in /llvm/trunk: lib/Transforms/Scalar/IndVarSimplify.cpp test/Transforms/IndVarSimplify/floating-point-iv.ll test/Transforms/LoopUnroll/scevunroll.ll
Andrew Trick
atrick at apple.com
Mon Sep 12 20:23:22 PDT 2011
Author: atrick
Date: Mon Sep 12 22:23:21 2011
New Revision: 139579
URL: http://llvm.org/viewvc/llvm-project?rev=139579&view=rev
Log:
Disable IV rewriting by default. See PR10916.
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/trunk/test/Transforms/IndVarSimplify/floating-point-iv.ll
llvm/trunk/test/Transforms/LoopUnroll/scevunroll.ll
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=139579&r1=139578&r2=139579&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Mon Sep 12 22:23:21 2011
@@ -60,7 +60,7 @@
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
Modified: llvm/trunk/test/Transforms/IndVarSimplify/floating-point-iv.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IndVarSimplify/floating-point-iv.ll?rev=139579&r1=139578&r2=139579&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/IndVarSimplify/floating-point-iv.ll (original)
+++ llvm/trunk/test/Transforms/IndVarSimplify/floating-point-iv.ll Mon Sep 12 22:23:21 2011
@@ -87,6 +87,6 @@
ret void
; CHECK: @test5
-; CHECK: icmp eq i32 {{.*}}, 10
+; CHECK: icmp slt i32 {{.*}}, 0
; CHECK-NEXT: br i1
}
Modified: llvm/trunk/test/Transforms/LoopUnroll/scevunroll.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopUnroll/scevunroll.ll?rev=139579&r1=139578&r2=139579&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopUnroll/scevunroll.ll (original)
+++ llvm/trunk/test/Transforms/LoopUnroll/scevunroll.ll Mon Sep 12 22:23:21 2011
@@ -67,7 +67,7 @@
; 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:
More information about the llvm-commits
mailing list