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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 12:08:28 PDT 2025


================
@@ -8239,7 +8239,7 @@ VPRecipeBase *VPRecipeBuilder::tryToCreateWidenRecipe(VPSingleDefRecipe *R,
   VPRecipeBase *Recipe;
   Instruction *Instr = R->getUnderlyingInstr();
   SmallVector<VPValue *, 4> Operands(R->operands());
-  if (auto *PhiR = dyn_cast<VPWidenPHIRecipe>(R)) {
+  if (auto *PhiR = dyn_cast<VPPhi>(R)) {
----------------
fhahn wrote:

Yep, added an assert to the else branch using `!VPRecipeBase::isPhi()`

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


More information about the llvm-commits mailing list