[PowerPC] Try to simplify a Swap if it feeds a Splat
authorStefan Pintilie <stefanp@ca.ibm.com>
Mon, 23 Oct 2017 19:33:31 +0000 (19:33 +0000)
committerStefan Pintilie <stefanp@ca.ibm.com>
Mon, 23 Oct 2017 19:33:31 +0000 (19:33 +0000)
commitfeafa1d7f01ee3ca8e33f14af729d962fea91308
tree506b30a964b3c5a262fc1020fd77fe0694993b5e
parent70abb6e204063195bf57a05203f1b1cbf05229fb
[PowerPC] Try to simplify a Swap if it feeds a Splat

If we have the situation where a Swap feeds a Splat we can sometimes change the
index on the Splat and then remove the Swap instruction.

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

llvm-svn: 316366
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/ppc64-peephole-swap.ll [new file with mode: 0644]