[llvm] [GlobalIsel][AArch64] legalize ptr add (PR #89218)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 7 13:52:00 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:
Drop the second one - it's adding untested paths
https://github.com/llvm/llvm-project/pull/89218
More information about the llvm-commits
mailing list