[llvm] [VPlan] Use VPWidenIntrinsicRecipe to vp.select. (PR #110489)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 06:27:14 PDT 2024


================
@@ -1383,6 +1385,15 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
                 VPValue *NewMask = GetNewMask(Red->getCondOp());
                 return new VPReductionEVLRecipe(*Red, EVL, NewMask);
               })
+              .Case<VPWidenSelectRecipe>([&](VPWidenSelectRecipe *Sel) {
+                SmallVector<VPValue *> Ops(Sel->operands());
+                Ops.push_back(&EVL);
+                return new VPWidenIntrinsicRecipe(
----------------
alexey-bataev wrote:

What about cost estimation for this intrinsic? Do we rely on TTI here completely and no other cost tuning required?

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


More information about the llvm-commits mailing list