[llvm] [AArch64] Use LD1/ST1 in strict-align mode (PR #211513)
Oliver Stannard via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 01:48:29 PDT 2026
================
@@ -3153,6 +3157,15 @@ bool AArch64TargetLowering::allowsMisalignedMemoryAccesses(
return true;
}
+ // For NEON, we can use LD1/ST1 when the alignment is less than the size of
+ // the vector, but greater than or equal to the size of the elements.
+ if (Subtarget->requiresStrictAlign() && VT.isFixedLengthVector() &&
+ (VT.getSizeInBits() == 64 || VT.getSizeInBits() == 128)) {
+ unsigned ElementSizeBits = VT.getScalarSizeInBits();
----------------
ostannard wrote:
Done
https://github.com/llvm/llvm-project/pull/211513
More information about the llvm-commits
mailing list