[PATCH] Fix two issues on unaligned 256-bit vector memory access on AVX

Michael Liao michael.liao at intel.com
Sat Mar 23 22:07:08 PDT 2013


Hi All

On Sandybridge, unaligned 256-bit vector memory access needs splitting
to avoid higher cache line split penalty. The 1st patch enhances ToT to
handle non <4 x i64> vector integer types. The 2nd patch fixes two
alignment calculation issues in ToT. One is a memory access is regarded
as aligned if the specified alignment is larger than the natural
alignment; the other issue is that the alignment for the high 128-bit
vector should be min(16, original alignment) since the pointer is
advanced by 16B, a power-of-2 offset.

Test cases are included for each patch.

Thanks for review
- Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enhance-folding-of-extract_subvec-insert_subvec-V1-V.patch
Type: text/x-patch
Size: 4695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130323/cd3022eb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Revise-alignment-calculation-issues-on-256-bit-unali.patch
Type: text/x-patch
Size: 4950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130323/cd3022eb/attachment-0001.bin>


More information about the llvm-commits mailing list