[PATCH] D39009: [PowerPC] Simplify a Swap if it feeds a Splat

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 09:38:44 PDT 2017


stefanp created this revision.

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.


https://reviews.llvm.org/D39009

Files:
  lib/Target/PowerPC/PPCMIPeephole.cpp
  test/CodeGen/PowerPC/ppc64-peephole-swap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39009.119346.patch
Type: text/x-patch
Size: 6372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171017/603c1723/attachment.bin>


More information about the llvm-commits mailing list