[PATCH] D54512: [X86] Add -x86-experimental-vector-widening support to reduceVMULWidth and combineMulToPMADDWD

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 13 23:01:26 PST 2018


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added subscribers: dexonsmith, inglorion, mehdi_amini.

With reduceVMULWidth, we no longer need to worry about extending the vector to 128 bits first. Regular widening of extends, muls and shuffles will take care of that for us.

In combineMulToPMADDWD, we can handle v2i32 multiplies and allow the VPMADDWD to be widened to v4i32 during type legalization by adding custom widening like we do have for AVG/ADDUS/SUBUS. I had to modify that code a little to allow different and output VTs.


https://reviews.llvm.org/D54512

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/shrink_vmul-widen.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54512.173987.patch
Type: text/x-patch
Size: 16074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181114/405fc34d/attachment-0001.bin>


More information about the llvm-commits mailing list