OSDN Git Service

[X86] Make the MUL->VPMADDWD work before op legalization on AVX1 targets. Simplify...
authorCraig Topper <craig.topper@intel.com>
Wed, 7 Mar 2018 17:53:18 +0000 (17:53 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 7 Mar 2018 17:53:18 +0000 (17:53 +0000)
commit07657f23003be38a8ae22148b6be824d5fb3608b
tree2a149c659f76f96038e402c276343cf1301f727c
parent92d52490c85478da87715e451051c0de93a30dff
[X86] Make the MUL->VPMADDWD work before op legalization on AVX1 targets. Simplify feature checks by using isTypeLegal.

The v8i32 conversion on AVX1 targets was only working after LowerMUL splits 256-bit vectors.

While I was there I've also made it so we don't have to check for AVX2 and BWI directly and instead just ask if the type is legal.

Differential Revision: https://reviews.llvm.org/D44190

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