[PATCH] [PPC64LE] Remove unnecessary swaps from lane-insensitive vector computations

Bill Schmidt wschmidt at linux.vnet.ibm.com
Mon Apr 13 13:42:53 PDT 2015


OK, I've attempted to address all comments.  The biggest change is adding an InstrMapping to PPC.td to record which instructions kill the swap removal optimization, rather then just listing them in the switch statement.  It is a bit ugly to use a mapping to represent a set, but it appears to be the only option for doing this via TableGen.  Let me know if you have any better suggestions.

Thanks again for the thorough reviews!

Bill


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8565

Files:
  lib/Target/PowerPC/CMakeLists.txt
  lib/Target/PowerPC/PPC.h
  lib/Target/PowerPC/PPC.td
  lib/Target/PowerPC/PPCInstrAltivec.td
  lib/Target/PowerPC/PPCInstrVSX.td
  lib/Target/PowerPC/PPCTargetMachine.cpp
  lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
  test/CodeGen/PowerPC/swaps-le-1.ll
  test/CodeGen/PowerPC/vsx-ldst-builtin-le.ll
  test/CodeGen/PowerPC/vsx-ldst.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8565.23695.patch
Type: text/x-patch
Size: 61099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150413/4330827e/attachment.bin>


More information about the llvm-commits mailing list