Index: llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp =================================================================== --- llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -117,7 +117,7 @@ cl::Hidden, cl::init(false)); static cl::opt MinRuntimeIterations("min-runtime-iterations", - cl::Hidden, cl::init(3)); + cl::Hidden, cl::init(10)); static cl::opt AllowUnsignedLatchCondition("irce-allow-unsigned-latch", cl::Hidden, cl::init(true)); Index: llvm/test/Transforms/IRCE/multiple-access-no-preloop.ll =================================================================== --- llvm/test/Transforms/IRCE/multiple-access-no-preloop.ll +++ llvm/test/Transforms/IRCE/multiple-access-no-preloop.ll @@ -60,4 +60,4 @@ ; CHECK: br i1 %next.postloop, label %loop.postloop, label %exit.loopexit !0 = !{i32 0, i32 2147483647} -!1 = !{!"branch_weights", i32 64, i32 4} +!1 = !{!"branch_weights", i32 128, i32 4}