[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
================
@@ -63,17 +63,20 @@ bool VPlanTransforms::tryToConvertVPInstructionsToVPRecipes(
Instruction *Inst = cast<Instruction>(VPV->getUnderlyingValue());
VPRecipeBase *NewRecipe = nullptr;
- if (auto *VPPhi = dyn_cast<VPWidenPHIRecipe>(&Ingredient)) {
- auto *Phi = cast<PHINode>(VPPhi->getUnderlyingValue());
+ if (auto *PhiR = dyn_cast<VPPhi>(&Ingredient)) {
----------------
ayalz wrote:
Independent: `Ingredient` usually stands for an underlying IR Instruction rather than recipe.
https://github.com/llvm/llvm-project/pull/150847
More information about the llvm-commits
mailing list