[llvm] [AArch64][GlobalISel] Legalization for small anyext/sext/zext (PR #86438)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 11:11:00 PDT 2024


================
@@ -611,7 +611,9 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
                Query.Types[0].isVector() &&
                (Query.Types[1].getScalarSizeInBits() == 8 ||
                 Query.Types[1].getScalarSizeInBits() == 16);
-      });
+      })
+      .clampMinNumElements(1, s8, 8)
+      .clampMinNumElements(1, s16, 4);
----------------
aemerson wrote:

Should we fold these into the MaxNumElements rules above, using `clampNumElements()`?

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


More information about the llvm-commits mailing list