[llvm] [LV][EVL] Support cast instruction with EVL-vectorization (PR #108351)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 11:01:50 PDT 2024
================
@@ -1344,6 +1344,13 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
return nullptr;
return new VPWidenEVLRecipe(*W, EVL);
})
+ .Case<VPWidenCastRecipe>(
+ [&](VPWidenCastRecipe *W) -> VPRecipeBase * {
+ auto Inst = cast<CastInst>(W->getUnderlyingInstr());
+ if (!Inst->isCast())
+ return nullptr;
----------------
alexey-bataev wrote:
Is it possible to have not-a-cast here?
https://github.com/llvm/llvm-project/pull/108351
More information about the llvm-commits
mailing list