[llvm] [VPlan] Model branch cond to enter scalar epilogue in VPlan. (PR #92651)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 23 12:44:50 PDT 2024


================
@@ -784,8 +821,9 @@ VPlan::~VPlan() {
 }
 
 VPlanPtr VPlan::createInitialVPlan(const SCEV *TripCount, ScalarEvolution &SE,
-                                   BasicBlock *PH) {
-  VPIRBasicBlock *Preheader = new VPIRBasicBlock(PH);
+                                   bool RequiresScalarEpilogueCheck,
+                                   bool TailFolded, Loop *TheLoop) {
+  VPIRBasicBlock *Preheader = new VPIRBasicBlock(TheLoop->getLoopPreheader());
----------------
fhahn wrote:

Done in 31a94bd783ae61f418bd730109992dfb30b70e87

https://github.com/llvm/llvm-project/pull/92651


More information about the llvm-commits mailing list