[llvm] [VPlan] Simplify branch on False in VPlan transform (NFC). (PR #140409)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 05:37:37 PDT 2025
================
@@ -1860,12 +1870,14 @@ static void removeBranchOnCondTrue(VPlan &Plan) {
// Values coming from VPBB into ResumePhi recipes of RemoveSucc are removed
// from these recipes.
for (VPRecipeBase &R : make_early_inc_range(*RemovedSucc)) {
- assert((!isa<VPIRInstruction>(&R) ||
- !isa<PHINode>(cast<VPIRInstruction>(&R)->getInstruction())) &&
- !isa<VPHeaderPHIRecipe>(&R) &&
- "Cannot update VPIRInstructions wrapping phis or header phis yet");
- auto *VPI = dyn_cast<VPInstruction>(&R);
- if (!VPI || VPI->getOpcode() != VPInstruction::ResumePhi)
+ if (isa<VPIRPhi>(&R)) {
+ assert(RemovedSucc->getNumPredecessors() == 1);
----------------
ayalz wrote:
Error message missing.
https://github.com/llvm/llvm-project/pull/140409
More information about the llvm-commits
mailing list