[PowerPC] Generate VSX version of splat word
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 4 May 2016 16:04:02 +0000 (16:04 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 4 May 2016 16:04:02 +0000 (16:04 +0000)
commit1a2b2f03e71f11b25a8940996c42c47f3688d9ab
tree292679474af70a9e43e2a82349730f12482f9705
parent38bd217d0cf77c07bc593ed3e19c4a5568dd9b60
[PowerPC] Generate VSX version of splat word

This patch corresponds to review:
http://reviews.llvm.org/D18592

It allows the PPC back end to generate the xxspltw instruction where we
previously only emitted vspltw.

llvm-svn: 268516
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
llvm/test/CodeGen/PowerPC/pr27078.ll
llvm/test/CodeGen/PowerPC/swaps-le-2.ll
llvm/test/CodeGen/PowerPC/vsx-word-splats.ll [new file with mode: 0644]