[PowerPC] Fix a performance bug for PPC::XXSLDWI.
authorTony Jiang <jtony@ca.ibm.com>
Wed, 24 May 2017 23:48:29 +0000 (23:48 +0000)
committerTony Jiang <jtony@ca.ibm.com>
Wed, 24 May 2017 23:48:29 +0000 (23:48 +0000)
commit0a429f040e338a1f126bb80e263918d8f8641ff2
treea7cc88b272cab78e940e0483d643df23f57c2ee3
parent8b78185e00e69e422cdffb047738bea94ec0221f
[PowerPC] Fix a performance bug for PPC::XXSLDWI.

There are some VectorShuffle Nodes in SDAG which can be selected to XXSLDWI
instruction, this patch recognizes them and does the selection to improve the
PPC performance.

llvm-svn: 303822
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/test/CodeGen/PowerPC/p8altivec-shuffles-pred.ll
llvm/test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll
llvm/test/CodeGen/PowerPC/pr27078.ll
llvm/test/CodeGen/PowerPC/vec_sldwi.ll [new file with mode: 0644]