[llvm] [AArch64][GlobalISel] More FCmp legalization. (PR #78734)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 09:54:38 PST 2024


================
@@ -566,8 +553,10 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
                    Ty.getElementType() != SrcTy.getElementType();
           },
           0, 1)
-      .clampNumElements(0, v2s32, v4s32)
-      .clampMaxNumElements(1, s64, 2);
+      .clampNumElements(1, v4s16, v8s16)
+      .clampNumElements(1, v2s32, v4s32)
+      .clampMaxNumElements(1, s64, 2)
----------------
davemgreen wrote:

There is only a max amount here, as it can't be a v1 vector. You could argue that keeping them more consistent is more readable, but only using clampNumElements is less legalizer rules.

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


More information about the llvm-commits mailing list