[Loop Peeling] Enable peeling of multiple exits by default.
authorSerguei Katkov <serguei.katkov@azul.com>
Fri, 19 Jul 2019 08:35:45 +0000 (08:35 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Fri, 19 Jul 2019 08:35:45 +0000 (08:35 +0000)
Enable loop peeling with multiple exits where all non-latch exits
ends up with deopt by default.

Reviewers: reames, fhahn
Reviewed By: reames
Subscribers: xbolva00, hiraditya, zzheng, llvm-commits
Differential Revision: https://reviews.llvm.org/D64619

llvm-svn: 366542

llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp

index 005306c..d55c0eb 100644 (file)
@@ -62,7 +62,7 @@ static cl::opt<unsigned> UnrollForcePeelCount(
     cl::desc("Force a peel count regardless of profiling information."));
 
 static cl::opt<bool> UnrollPeelMultiDeoptExit(
-    "unroll-peel-multi-deopt-exit", cl::init(false), cl::Hidden,
+    "unroll-peel-multi-deopt-exit", cl::init(true), cl::Hidden,
     cl::desc("Allow peeling of loops with multiple deopt exits."));
 
 // Designates that a Phi is estimated to become invariant after an "infinite"