[llvm] [VPlan] Use scalar VPPhi instead of VPWidenPHIRecipe in createPlainCFG. (PR #150847)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 08:32:50 PDT 2025


================
@@ -207,8 +205,8 @@ void PlainCFGBuilder::createVPInstructionsForVPBB(VPBasicBlock *VPBB,
       // Phi node's operands may have not been visited at this point. We create
       // an empty VPInstruction that we will fix once the whole plain CFG has
       // been built.
-      NewR = new VPWidenPHIRecipe(Phi, nullptr, Phi->getDebugLoc(), "vec.phi");
-      VPBB->appendRecipe(NewR);
+      NewR = VPIRBuilder.createScalarPhi({}, Phi->getDebugLoc(), "vec.phi");
----------------
ayalz wrote:

Independent: should `createScalarPhi()` be called `createVPPhi()` or should `VPPhi` be called `ScalarPhi`?

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


More information about the llvm-commits mailing list