[PowerPC] Emit XXSEL for vec_sel and code that has the same pattern
commit7074daff3e57f344201892f12166c55f32986e7b
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 25 Jun 2019 10:46:13 +0000 (25 10:46 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 25 Jun 2019 10:46:13 +0000 (25 10:46 +0000)
tree8e80a638f2fb23ce0852c4d082a1343b0ec4a4c0
parent580eedab5247e0bbcce870522333bd8f885280fa
[PowerPC] Emit XXSEL for vec_sel and code that has the same pattern

As pointed out in https://bugs.llvm.org/show_bug.cgi?id=41777
we do not emit a vector select even when the pretty much asks for one.
This patch changes that.

Differential revision: https://reviews.llvm.org/D61658

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364289 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrVSX.td
test/CodeGen/PowerPC/vec-select.ll [new file with mode: 0644]