[llvm] [VPlan] Connect Entry to scalar preheader during initial construction. (PR #140132)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 05:51:22 PDT 2025
================
@@ -1846,7 +1846,7 @@ static void removeBranchOnCondTrue(VPlan &Plan) {
using namespace llvm::VPlanPatternMatch;
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
vp_depth_first_shallow(Plan.getEntry()))) {
- if (VPBB->getNumSuccessors() != 2 ||
+ if (VPBB->getNumSuccessors() != 2 || isa<VPIRBasicBlock>(VPBB) ||
----------------
fhahn wrote:
Updated, thanks! We don't run removeBranchOnCond after introducing the other, terminator-less VPIRBBs.
https://github.com/llvm/llvm-project/pull/140132
More information about the llvm-commits
mailing list