[llvm] [VPlan] Introduce VPInstructionWithType, use instead of VPScalarCast(NFC) (PR #129706)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 14:50:08 PDT 2025
================
@@ -45,8 +45,7 @@ inline bool isUniformAfterVectorization(const VPValue *VPV) {
return true;
if (auto *Rep = dyn_cast<VPReplicateRecipe>(VPV))
return Rep->isUniform();
- if (isa<VPWidenGEPRecipe, VPDerivedIVRecipe, VPScalarCastRecipe,
- VPBlendRecipe>(VPV))
+ if (isa<VPWidenGEPRecipe, VPDerivedIVRecipe, VPBlendRecipe>(VPV))
return all_of(VPV->getDefiningRecipe()->operands(),
isUniformAfterVectorization);
if (auto *VPI = dyn_cast<VPInstruction>(VPV))
----------------
ayalz wrote:
This now also covers the VPInstructionWithType case, right?
https://github.com/llvm/llvm-project/pull/129706
More information about the llvm-commits
mailing list