[PATCH] D51818: [X86] Create paddus/psubus from narrower vectors with i8/i16 element types.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 7 14:40:30 PDT 2018


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

This patch allows vectors with a power of 2 number of elements and i8/i16 element type to select paddus/psubus instructions. ReplaceNodeResults has been updated to custom widen these operations up to 128 bits like we already do for PAVG.

Another step towards fixing PR38691


https://reviews.llvm.org/D51818

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/paddus.ll
  test/CodeGen/X86/psubus.ll
  test/CodeGen/X86/sse2-intrinsics-canonical.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51818.164519.patch
Type: text/x-patch
Size: 75769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180907/59b92200/attachment-0001.bin>


More information about the llvm-commits mailing list