[llvm] [VPlan] Add new VPIRPhi overlay for VPIRInsts wrapping phi nodes (NFC). (PR #129387)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 12 07:09:55 PDT 2025
================
@@ -205,10 +205,8 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
for (const VPUser *U : V->users()) {
auto *UI = cast<VPRecipeBase>(U);
// TODO: check dominance of incoming values for phis properly.
- if (!UI ||
- isa<VPHeaderPHIRecipe, VPWidenPHIRecipe, VPPredInstPHIRecipe>(UI) ||
- (isa<VPIRInstruction>(UI) &&
- isa<PHINode>(cast<VPIRInstruction>(UI)->getInstruction())))
+ if (!UI || isa<VPHeaderPHIRecipe, VPWidenPHIRecipe, VPPredInstPHIRecipe,
+ VPIRPhi>(UI))
----------------
ayalz wrote:
Nice!
Independently: drop `!UI`? Probably a remanent of VPLiveOut, but even then should dyn_cast. Could the cast be dropped altogether (or postponed), checking `if (isa<VPHeaderPHIRecipe, VPWidenPHIRecipe, VPPredInstPHIRecipe, VPIRPhi>(U))`?
https://github.com/llvm/llvm-project/pull/129387
More information about the llvm-commits
mailing list