[PowerPC] Add missing legalization for vector BSWAP
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 18 Dec 2019 01:07:18 +0000 (19:07 -0600)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 18 Dec 2019 01:07:34 +0000 (19:07 -0600)
commita5da8d90daa3a0c7aead8ef864cc3c291660054b
tree7be56930fdaf41d8e1bab36480278c665f48015c
parent758825c5b8e3f3814b39620ae6cff78444ed9a41
[PowerPC] Add missing legalization for vector BSWAP

We somehow missed doing this when we were working on Power9 exploitation.
This just adds the missing legalization and cost for producing the vector
intrinsics.

Differential revision: https://reviews.llvm.org/D70436
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
llvm/test/CodeGen/PowerPC/vec-bswap.ll [new file with mode: 0644]
llvm/test/Transforms/LoopVectorize/PowerPC/vectorize-bswap.ll [new file with mode: 0644]