[llvm] [GlobalIsel][AArch64] legalize ptr add (PR #89218)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 07:36:10 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);
----------------
arsenm wrote:
These should be redundant? Do we support implicit splat in the second operand?
https://github.com/llvm/llvm-project/pull/89218
More information about the llvm-commits
mailing list