[PATCH] D42786: Consider endianness in TargetLowering::scalarizeVectorStore()

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 01:44:43 PST 2018


jonpa created this revision.
jonpa added reviewers: eli.friedman, uweigand.

The recent fix (https://reviews.llvm.org/D42100) for vector stores of non byte-sized elements lacked consideration of endianness.

After discussion it was agreed that the order of the elements in the built integer should be reversed for Big-Endian targets, which is what this patch is aimed to do.

The SystemZ (Big-Endian) tests are updated as well.


https://reviews.llvm.org/D42786

Files:
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/SystemZ/store_nonbytesized_vecs.ll
  test/CodeGen/SystemZ/vec-move-17.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42786.132337.patch
Type: text/x-patch
Size: 8502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180201/ff86b79e/attachment.bin>


More information about the llvm-commits mailing list