[PATCH] D64619: [Loop Peeling] Enable peeling of multiple exits by default

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 01:52:22 PDT 2019


skatkov created this revision.
skatkov added reviewers: reames, fhahn.
Herald added subscribers: zzheng, hiraditya.
Herald added a project: LLVM.

Enable loop peeling with multiple exits where all non-latch exits
ends up with deopt by default.


https://reviews.llvm.org/D64619

Files:
  llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp


Index: llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
===================================================================
--- llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
+++ llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
@@ -62,7 +62,7 @@
     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"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64619.209431.patch
Type: text/x-patch
Size: 642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190712/1624b45e/attachment.bin>


More information about the llvm-commits mailing list