[clang] [llvm] [AArch64][SVE] Lower unpredicated loads/stores as LDR/STR. (PR #127837)
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 26 04:10:28 PST 2025
================
@@ -2993,6 +2993,22 @@ let Predicates = [HasSVE_or_SME] in {
defm : unpred_loadstore_bitcast<nxv2i64>;
defm : unpred_loadstore_bitcast<nxv2f64>;
+ // Allow using LDR/STR to avoid the predicate dependence.
+ let Predicates = [IsLE, AllowMisalignedMemAccesses] in
----------------
paulwalker-arm wrote:
```suggestion
let Predicates = [HasSVE_or_SME, IsLE, AllowMisalignedMemAccesses] in
```
This is not critical because in theory we shouldn't get this far if scalable vectors are not available but this is normally what we do when overriding `Predicate`.
https://github.com/llvm/llvm-project/pull/127837
More information about the cfe-commits
mailing list