[llvm] [AArch64][GlobalISel] Legalize ptr shuffle vector to s64 (PR #116013)
Madhur Amilkanthwar via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 02:33:20 PST 2024
================
@@ -1077,7 +1079,16 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
.clampNumElements(0, v8s8, v16s8)
.clampNumElements(0, v4s16, v8s16)
.clampNumElements(0, v4s32, v4s32)
- .clampNumElements(0, v2s64, v2s64);
+ .clampNumElements(0, v2s64, v2s64)
+ .bitcastIf(
----------------
madhur13490 wrote:
Instead of doing bitcast, why not make v2p0 legal? Generating bitcast and going through PTRTOINT seems sub-optimal.
https://github.com/llvm/llvm-project/pull/116013
More information about the llvm-commits
mailing list