[llvm-branch-commits] [llvm] [AArch64][GlobalISel] Avoid splitting loads of large vector types into individual element loads (PR #85042)
Dhruv Chawla via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Mar 13 04:11:51 PDT 2024
dc03-work wrote:
> It looks like this comes from the lowerIfMemSizeNotByteSizePow2. Custom is often best avoided unless there is not anther way, or the change is quite target-dependant.
>
> Can we try something like this instead?
>
> ```
> .clampMaxNumElements(0, s8, 16)
> .clampMaxNumElements(0, s16, 8)
> .clampMaxNumElements(0, s32, 4)
> .clampMaxNumElements(0, s64, 2)
> .clampMaxNumElements(0, p0, 2)
> .lowerIfMemSizeNotByteSizePow2()
> ...
> ```
Yup, that works :)
https://github.com/llvm/llvm-project/pull/85042
More information about the llvm-branch-commits
mailing list