]> granicus.if.org Git - llvm/commit
[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)
commit990e764ad8a2eec206ce5dda6aefab059ccd4e92
treea9a0e70af36826db3f8d0b0df781002450bb5a61
parent0344b6624ee040ef603f90bf463367309257335f
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316366 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCMIPeephole.cpp
test/CodeGen/PowerPC/ppc64-peephole-swap.ll [new file with mode: 0644]