From: Serguei Katkov Date: Fri, 19 Jul 2019 08:35:45 +0000 (+0000) Subject: [Loop Peeling] Enable peeling of multiple exits by default. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fa8df998810e73f0c09189d3dcb2fae77c669f1;p=llvm [Loop Peeling] Enable peeling of multiple exits by default. 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366542 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/LoopUnrollPeel.cpp b/lib/Transforms/Utils/LoopUnrollPeel.cpp index 005306cf189..d55c0eb7c6e 100644 --- a/lib/Transforms/Utils/LoopUnrollPeel.cpp +++ b/lib/Transforms/Utils/LoopUnrollPeel.cpp @@ -62,7 +62,7 @@ static cl::opt UnrollForcePeelCount( cl::desc("Force a peel count regardless of profiling information.")); static cl::opt 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"