]> granicus.if.org Git - llvm/commitdiff
Enable IRCE for narrow latch by defailt
authorMax Kazantsev <max.kazantsev@azul.com>
Wed, 30 Jan 2019 11:25:12 +0000 (11:25 +0000)
committerMax Kazantsev <max.kazantsev@azul.com>
Wed, 30 Jan 2019 11:25:12 +0000 (11:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352619 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp

index 2c582ca90f649c2a290069c7d45eca24c16107c7..f89b8e498f75e3d7e7b155419d8e11cab6be8773 100644 (file)
@@ -116,7 +116,7 @@ static cl::opt<bool> AllowUnsignedLatchCondition("irce-allow-unsigned-latch",
                                                  cl::Hidden, cl::init(true));
 
 static cl::opt<bool> AllowNarrowLatchCondition(
-    "irce-allow-narrow-latch", cl::Hidden, cl::init(false),
+    "irce-allow-narrow-latch", cl::Hidden, cl::init(true),
     cl::desc("If set to true, IRCE may eliminate wide range checks in loops "
              "with narrow latch condition."));