[llvm] [AArch64][GlobalISel] Improve lowering of vector fp16 fpext (PR #165554)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 02:18:27 PST 2025
================
@@ -825,6 +825,15 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
.legalFor(
{{s32, s16}, {s64, s16}, {s64, s32}, {v4s32, v4s16}, {v2s64, v2s32}})
.libcallFor({{s128, s64}, {s128, s32}, {s128, s16}})
+ .moreElementsToNextPow2(0)
+ .lowerIf([](const LegalityQuery &Q) {
+ LLT DstTy = Q.Types[0];
+ LLT SrcTy = Q.Types[1];
+ return SrcTy.isVector() && DstTy.isVector() &&
+ SrcTy.getNumElements() > 2 &&
----------------
davemgreen wrote:
What went wrong?
https://github.com/llvm/llvm-project/pull/165554
More information about the llvm-commits
mailing list