[PATCH] D19228: [X86][AVX2] Prefer VPERMQ/VPERMPD over VPERM2I128/VPERM2F128 for unary shuffles

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 09:52:50 PDT 2016


RKSimon created this revision.
RKSimon added reviewers: mkuper, andreadb, spatel.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

Using VPERMQ/VPERMPD allows memory folding of the (repeated) input where VPERM2I128/VPERM2F128 can not.

Repository:
  rL LLVM

http://reviews.llvm.org/D19228

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/avx-vperm2x128.ll
  test/CodeGen/X86/vector-shuffle-256-v16.ll
  test/CodeGen/X86/vector-shuffle-256-v32.ll
  test/CodeGen/X86/vector-shuffle-256-v4.ll
  test/CodeGen/X86/vector-shuffle-256-v8.ll
  test/CodeGen/X86/vector-shuffle-combining.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19228.54076.patch
Type: text/x-patch
Size: 23742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160418/c3f994e6/attachment.bin>


More information about the llvm-commits mailing list