[PATCH] D44190: [X86] Make the MUL->VPMADDWD work before op legalization on AVX1 targets. Simplify feature checks by using isTypeLegal.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 6 23:33:50 PST 2018


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

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. I really want to minimize the number of places we have to check useBWIRegs().


Repository:
  rL LLVM

https://reviews.llvm.org/D44190

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44190.137329.patch
Type: text/x-patch
Size: 12689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180307/dfb170b3/attachment.bin>


More information about the llvm-commits mailing list