[PATCH] D54671: [X86] Lower v16i16->v8i16 truncate using an 'and' with 255, an extract_subvector, and a packuswb instruction.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 17 16:01:39 PST 2018


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.

This is an improvement over the two pshufbs and punpcklqdq we'd get otherwise.


Repository:
  rL LLVM

https://reviews.llvm.org/D54671

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/avg.ll
  test/CodeGen/X86/avx-trunc.ll
  test/CodeGen/X86/avx2-arith.ll
  test/CodeGen/X86/avx2-conversions.ll
  test/CodeGen/X86/combine-mul.ll
  test/CodeGen/X86/pmul.ll
  test/CodeGen/X86/prefer-avx256-mask-extend.ll
  test/CodeGen/X86/prefer-avx256-mask-shuffle.ll
  test/CodeGen/X86/prefer-avx256-trunc.ll
  test/CodeGen/X86/psubus.ll
  test/CodeGen/X86/shuffle-vs-trunc-256-widen.ll
  test/CodeGen/X86/shuffle-vs-trunc-256.ll
  test/CodeGen/X86/vector-mul.ll
  test/CodeGen/X86/vector-reduce-mul.ll
  test/CodeGen/X86/vector-shift-shl-128.ll
  test/CodeGen/X86/vector-trunc-math-widen.ll
  test/CodeGen/X86/vector-trunc-math.ll
  test/CodeGen/X86/vector-trunc-widen.ll
  test/CodeGen/X86/vector-trunc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54671.174521.patch
Type: text/x-patch
Size: 178903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181118/012f1376/attachment-0001.bin>


More information about the llvm-commits mailing list