[llvm] [VPlan] Add new VPIRPhi overlay for VPIRInsts wrapping phi nodes (NFC). (PR #129387)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 26 04:51:58 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))
----------------
fhahn wrote:

Yep, will do separately, thanks!

https://github.com/llvm/llvm-project/pull/129387


More information about the llvm-commits mailing list