[llvm] [LV][EVL] Support cast instruction with EVL-vectorization (PR #108351)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 13:58:41 PDT 2024
fhahn wrote:
> > Same question as for #109614, would using a generic intrinsic recipe work, or is there a need to have dedicated recipes for those?
>
> Generally speaking, it should work. The only high level question here - distinguish between different opcodes in VPlan-based cost model. We'll need to implement something like switch-like approach in a recipe
I think as long as we are using them only for cases where we directly CodeGen the intrinsic and nothing else, it should be fine to rely on TTI to return the correct costs. If there are any inaccuracies, the cost model should likely be improved to fix those
https://github.com/llvm/llvm-project/pull/108351
More information about the llvm-commits
mailing list