[llvm] [VPlan] Introduce VPInstructionWithType, use instead of VPScalarCast(NFC) (PR #129706)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 10 07:36:26 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))
----------------
fhahn wrote:
Yep, that's one of the main advantages of sharing the VPInstruction base class
https://github.com/llvm/llvm-project/pull/129706
More information about the llvm-commits
mailing list