[PATCH] D33690: [PowerPC] Match vec_revb builtins to P9 instructions.

Tony Jiang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 13:27:39 PDT 2017


jtony created this revision.



  Power9 has instructions that will reverse the bytes within an element for all
  sizes (half-word, word, double-word and quad-word). These can be used for the
  vec_revb builtins in altivec.h. However, we implement these to match vector
  shuffle nodes as that will cover both the builtins and vector shuffles that
  occur in the SDAG through other means.


https://reviews.llvm.org/D33690

Files:
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/PowerPC/PPCISelLowering.h
  lib/Target/PowerPC/PPCInstrInfo.td
  lib/Target/PowerPC/PPCInstrVSX.td
  test/CodeGen/PowerPC/vec_revb.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33690.100756.patch
Type: text/x-patch
Size: 11116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170530/bfb6df81/attachment.bin>


More information about the llvm-commits mailing list