[llvm-commits] [llvm] r139842 - 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
Thu Sep 15 13:58:37 PDT 2011


Author: atrick
Date: Thu Sep 15 15:58:37 2011
New Revision: 139842

URL: http://llvm.org/viewvc/llvm-project?rev=139842&view=rev
Log:
Reapply r139759. 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=139842&r1=139841&r2=139842&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Thu Sep 15 15:58:37 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=139842&r1=139841&r2=139842&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/IndVarSimplify/floating-point-iv.ll (original)
+++ llvm/trunk/test/Transforms/IndVarSimplify/floating-point-iv.ll Thu Sep 15 15:58:37 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=139842&r1=139841&r2=139842&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopUnroll/scevunroll.ll (original)
+++ llvm/trunk/test/Transforms/LoopUnroll/scevunroll.ll Thu Sep 15 15:58:37 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