[PowerPC] Improvements for BUILD_VECTOR Vol. 4
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 6 Dec 2016 11:47:14 +0000 (11:47 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 6 Dec 2016 11:47:14 +0000 (11:47 +0000)
commit15748f492123053edda8ab18140630ad9efa7f76
tree02dce1802e9b46e37402e7da994acbe1ffff3a3d
parentbfd5ff155a42ddb27173100b315df046275f7585
[PowerPC] Improvements for BUILD_VECTOR Vol. 4

This is the final patch in the series of patches that improves
BUILD_VECTOR handling on PowerPC. This adds a few peephole optimizations
to remove redundant instructions. It also adds a large test case which
encompasses a large set of code patterns that build vectors - this test
case was the motivator for this series of patches.

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

llvm-svn: 288800
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/build-vector-tests.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/power9-moves-and-splats.ll
llvm/test/CodeGen/PowerPC/vsx-partword-int-loads-and-stores.ll