[PowerPC] Enhance the selection(ISD::VSELECT) of vector type
authorZi Xuan Wu <wuzish@cn.ibm.com>
Wed, 14 Nov 2018 02:34:45 +0000 (02:34 +0000)
committerZi Xuan Wu <wuzish@cn.ibm.com>
Wed, 14 Nov 2018 02:34:45 +0000 (02:34 +0000)
commit6a3c279d1cdcd4205a233952b4bacd5941cd355e
tree88d06c85528e336e0701b7776a6e592b09a177a5
parent41390b47de8b8e9952cf466d8220c17ec1bbc326
[PowerPC] Enhance the selection(ISD::VSELECT) of vector type

To make ISD::VSELECT available(legal) so long as there are altivec instruction, otherwise it's default behavior is expanding,
which is legalized at type-legalization phase. Use xxsel to match vselect if vsx is open, or use vsel.

Differential Revision: https://reviews.llvm.org/D49531

llvm-svn: 346824
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrAltivec.td
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/vec_select.ll