Expand masked mem intrinsics correctly wrt big-endian
authorMarkus Lavin <markus.lavin@ericsson.com>
Thu, 11 Feb 2021 08:59:52 +0000 (08:59 +0000)
committerDavid Green <david.green@arm.com>
Thu, 11 Feb 2021 08:59:52 +0000 (08:59 +0000)
commit9498315c9ba35b41e6b82f33ca629482d6db72b9
tree0c9dbaf0d145b2fc4f4d6d14ee32999a4a834651
parent1db7b9ceaae43ab3c44ac96e238ec078538204ea
Expand masked mem intrinsics correctly wrt big-endian

Need to take endianness into account when doing vector to scalar casts
such as %bc = bitcast <8 x i1> %v to i8
Companion commit for https://reviews.llvm.org/D94867
Upload in response to
https://lists.llvm.org/pipermail/llvm-dev/2021-January/147862.html
Attempting to document the actual memory layout rules for vectors in
https://reviews.llvm.org/D94964

Differential Revision: https://reviews.llvm.org/D94765
llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
llvm/test/CodeGen/Thumb2/mve-masked-ldst.ll
llvm/test/CodeGen/Thumb2/mve-masked-load.ll
llvm/test/CodeGen/Thumb2/mve-masked-store.ll
llvm/test/Transforms/ScalarizeMaskedMemIntrin/AArch64/expand-masked-load.ll
llvm/test/Transforms/ScalarizeMaskedMemIntrin/AArch64/expand-masked-store.ll