[llvm] [VPlan] Model branch cond to enter scalar epilogue in VPlan. (PR #92651)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 05:25:16 PDT 2024
================
@@ -815,6 +819,42 @@ VPlanPtr VPlan::createInitialVPlan(const SCEV *TripCount, ScalarEvolution &SE,
VPBlockUtils::insertBlockAfter(TopRegion, VecPreheader);
VPBasicBlock *MiddleVPBB = new VPBasicBlock("middle.block");
VPBlockUtils::insertBlockAfter(MiddleVPBB, TopRegion);
+
+ // Add a check in the middle block to see if we have completed
----------------
ayalz wrote:
```suggestion
VPBasicBlock *ScalarPH = new VPBasicBlock("scalar.ph");
// If needed, add a check in the middle block to see if we have completed
```
https://github.com/llvm/llvm-project/pull/92651
More information about the llvm-commits
mailing list