diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index b5500dec6e74..e240c42e36c2 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 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 e334f069b81d..266eebd5bb65 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 9971f310ec45..99b3a7d86197 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: