[llvm] [GlobalIsel][AArch64] legalize ptr add (PR #89218)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 18 07:48:46 PDT 2024


================
@@ -183,7 +183,9 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
 
   getActionDefinitionsBuilder(G_PTR_ADD)
       .legalFor({{p0, s64}, {v2p0, v2s64}})
-      .clampScalar(1, s64, s64);
+      .clampScalar(1, s64, s64)
+      .clampNumElements(0, v2p0, v2p0)
+      .clampNumElements(1, v2s64, v2s64);
----------------
tschuett wrote:

To state the obvious, AArch64 does not.

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


More information about the llvm-commits mailing list