[PATCH] D50781: [X86][SSE] Lower constant vXi8 ISD::SRL/ISD::SRA using PMULLW

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 15 07:46:46 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: efriedma, craig.topper, spatel, lebedev.ri, andreadb.

Extending the concept introduced in https://reviews.llvm.org/D49562, this patch lowers constant vXi8 ISD::SRL/ISD::SRA by zero/sign extending to vXi16 and using PMULLW and then truncating the high 8 bits of the result.


Repository:
  rL LLVM

https://reviews.llvm.org/D50781

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/combine-sdiv.ll
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50781.160806.patch
Type: text/x-patch
Size: 93497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180815/bc5893ff/attachment-0001.bin>


More information about the llvm-commits mailing list