[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)
commit67ab9eb193ce74b0a28bd2413189a34d929cc46c
tree561caba45943acef2696faca7ed274568e233f7c
parent8d1fb843274175022b21f348d69a91f3573e1514
[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.

llvm-svn: 359331
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-bswap.mir
llvm/test/CodeGen/AArch64/arm64-rev.ll