[llvm] [VPlan] Model branch cond to enter scalar epilogue in VPlan. (PR #92651)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 16 16:24:36 PDT 2024
================
@@ -364,7 +367,8 @@ static bool mergeBlocksIntoPredecessors(VPlan &Plan) {
vp_depth_first_deep(Plan.getEntry()))) {
auto *PredVPBB =
dyn_cast_or_null<VPBasicBlock>(VPBB->getSinglePredecessor());
- if (PredVPBB && PredVPBB->getNumSuccessors() == 1)
+ if (PredVPBB && PredVPBB->getNumSuccessors() == 1 &&
+ !isa<VPIRBasicBlock>(VPBB))
----------------
ayalz wrote:
Can check above `if (isa<VPIRBasicBlock>(VPBB)) continue;` before setting PredVPBB. Would have been nicer to fold it into blocksOnly<> somehow.
https://github.com/llvm/llvm-project/pull/92651
More information about the llvm-commits
mailing list