[llvm-branch-commits] [llvm] [AArch64][GlobalISel] Avoid splitting loads of large vector types into individual element loads (PR #85042)
David Green via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Mar 13 02:21:24 PDT 2024
https://github.com/davemgreen commented:
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()
...
```
https://github.com/llvm/llvm-project/pull/85042
More information about the llvm-branch-commits
mailing list