[X86] Add custom type legalization for v2i8/v4i8/v8i8 mul under -x86-experimental...
authorCraig Topper <craig.topper@intel.com>
Fri, 16 Nov 2018 06:15:21 +0000 (06:15 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 16 Nov 2018 06:15:21 +0000 (06:15 +0000)
commit079c37da5870239d0332870e6c8cea877b335600
treef7bc96a4d2b74ef8ce10125d84a8d04c4ff3ce24
parentdc957d49f9c0a2fcf9aebbc59a934a7bcccc91a4
[X86] Add custom type legalization for v2i8/v4i8/v8i8 mul under -x86-experimental-vector-widening.

By early promoting the multiply to use an i16 element type we can avoid op legalization emit a second multiply for the 8 upper elements of the v16i8 type we would otherwise get.

llvm-svn: 347032
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/widen_mul.ll