[PATCH] D96471: [SystemZ] Fix vecintrin.h to not emit alignment hints in vec_xl/vec_xst.

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 16:53:34 PST 2021


jonpa created this revision.
jonpa added a reviewer: uweigand.
jonpa requested review of this revision.

vec_xl() and vec_xst() should not emit alignment hints since they take a scalar pointer and also add an arbitrary byte offset to that.

This uses memcpy to achieve the desired result which seems to work well with optimizations enabled.

(I did not manage to use some kind of "attribute aligned" on the pointer to make the alignment go away...)


https://reviews.llvm.org/D96471

Files:
  clang/lib/Headers/vecintrin.h
  clang/test/CodeGen/SystemZ/builtins-systemz-zvector-constrained.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96471.322862.patch
Type: text/x-patch
Size: 18414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210211/c71b0c83/attachment.bin>


More information about the llvm-commits mailing list