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

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 12:18:25 PST 2017


stefanp created this revision.

Modify the peephole optimization for PowerPC so that it doesn't just simplify a shift feeding a splat but also a swap feeding a splat.

Also fixed a small bug in the original shift feeds splat code.


https://reviews.llvm.org/D39860

Files:
  lib/Target/PowerPC/PPCMIPeephole.cpp
  test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
  test/CodeGen/PowerPC/ppc-xxsldwi-peephole.ll
  test/CodeGen/PowerPC/ppc64-peephole-swap.ll
  test/CodeGen/PowerPC/vsx.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39860.122303.patch
Type: text/x-patch
Size: 12130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171109/182bc5ba/attachment.bin>


More information about the llvm-commits mailing list