[llvm] r366542 - [Loop Peeling] Enable peeling of multiple exits by default.

Serguei Katkov via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 01:35:45 PDT 2019


Author: skatkov
Date: Fri Jul 19 01:35:45 2019
New Revision: 366542

URL: http://llvm.org/viewvc/llvm-project?rev=366542&view=rev
Log:
[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

Modified:
    llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp

Modified: llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp?rev=366542&r1=366541&r2=366542&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp Fri Jul 19 01:35:45 2019
@@ -62,7 +62,7 @@ static cl::opt<unsigned> UnrollForcePeel
     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"




More information about the llvm-commits mailing list