From effb64715490e7680964a723d56a0e793a13f04b Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Tue, 13 Sep 2011 05:23:49 +0000 Subject: [PATCH] [indvars] Revert r139579 until 401.bzip -arch i386 miscompilation is fixed. PR10920. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139583 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- test/Transforms/IndVarSimplify/floating-point-iv.ll | 2 +- test/Transforms/LoopUnroll/scevunroll.ll | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index e240c42e36c..b5500dec6e7 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 EnableIVRewrite( - "enable-iv-rewrite", cl::Hidden, + "enable-iv-rewrite", cl::Hidden, cl::init(true), 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 266eebd5bb6..e334f069b81 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 slt i32 {{.*}}, 0 +; CHECK: icmp eq i32 {{.*}}, 10 ; CHECK-NEXT: br i1 } diff --git a/test/Transforms/LoopUnroll/scevunroll.ll b/test/Transforms/LoopUnroll/scevunroll.ll index 99b3a7d8619..9971f310ec4 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, i32 10 +; CHECK: getelementptr i32* %base, i64 10 ; CHECK-NEXT: load i32* ; CHECK: br i1 false, label %l2.10, label %exit1 ; CHECK: l2.10: