[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:49 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)) {
----------------
ayalz wrote:
```suggestion
assert(!isa<VPWidenPHIRecipe>(R) && "Only scalar recipes expected);
if (auto *PhiR = dyn_cast<VPPhi>(R)) {
```
?
https://github.com/llvm/llvm-project/pull/150847
More information about the llvm-commits
mailing list