OSDN Git Service

[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)
commit1f5686ff1b1ea7c2e5d670b92059cf5d19e521ad
treef408828f73a239e16dce5628901ed87fe69aae7e
parente4f36d3061f46706601032b9a2faf066048696f5
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347032 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/widen_mul.ll