[PATCH] D51263: [X86][SSE] Improve variable scalar shift of vXi8 vectors (PR34694)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 25 15:04:14 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: craig.topper, lebedev.ri, spatel, pcordes.
RKSimon added a reviewer: efriedma.

As suggested by PR34694, this patch performs the creation of the shift mask as a scalar before splatting back to the vector unit to perform the shift using the vXi16 vector shift ops.


Repository:
  rL LLVM

https://reviews.llvm.org/D51263

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/vector-rotate-512.ll
  test/CodeGen/X86/vector-shift-ashr-128.ll
  test/CodeGen/X86/vector-shift-ashr-256.ll
  test/CodeGen/X86/vector-shift-ashr-512.ll
  test/CodeGen/X86/vector-shift-lshr-128.ll
  test/CodeGen/X86/vector-shift-lshr-256.ll
  test/CodeGen/X86/vector-shift-lshr-512.ll
  test/CodeGen/X86/vector-shift-shl-128.ll
  test/CodeGen/X86/vector-shift-shl-256.ll
  test/CodeGen/X86/vector-shift-shl-512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51263.162566.patch
Type: text/x-patch
Size: 92479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180825/386738c3/attachment.bin>


More information about the llvm-commits mailing list