]> granicus.if.org Git - llvm/commit
[AArch64][GlobalISel] Select G_BSWAP for vectors of s32 and s64
authorJessica Paquette <jpaquette@apple.com>
Fri, 26 Apr 2019 18:00:01 +0000 (18:00 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 26 Apr 2019 18:00:01 +0000 (18:00 +0000)
commit05a31451d24619b709fb1e87e076ce62f1c5d3fd
treeba19d42166808a55c4e49206d92eb2b821975987
parent09f8a0f6a0c15ffb27a85658df3c3d4129bf28f5
[AArch64][GlobalISel] Select G_BSWAP for vectors of s32 and s64

There are instructions for these, so mark them as legal. Select the correct
instruction in AArch64InstructionSelector.cpp.

Update select-bswap.mir and arm64-rev.ll to reflect the changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359331 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstructionSelector.cpp
lib/Target/AArch64/AArch64LegalizerInfo.cpp
test/CodeGen/AArch64/GlobalISel/select-bswap.mir
test/CodeGen/AArch64/arm64-rev.ll