OSDN Git Service

[PowerPC] Try to simplify a Swap if it feeds a Splat
authorStefan Pintilie <stefanp@ca.ibm.com>
Tue, 24 Oct 2017 17:44:27 +0000 (17:44 +0000)
committerStefan Pintilie <stefanp@ca.ibm.com>
Tue, 24 Oct 2017 17:44:27 +0000 (17:44 +0000)
commit7c330fabaedaba3d02c58bc3cc1198896c895f34
tree12ed90f926cb8c381f25cb9c170d9ede767dbdf2
parentd9ad9f92cf603cf06e720d195005eeb6e570a8ce
[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.

Fixed the test case that was failing and recommit after pulling the original
  commit.

  Original revision is here: https://reviews.llvm.org/D39009

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