[PATCH] D28888: [AVX-512] Support ADD/SUB/MUL of mask vectors

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 20:05:38 PST 2017


craig.topper created this revision.

Currently we expand and scalarize these operations, but I think we should be able to implement ADD/SUB with KXOR and MUL with KAND.

We already do this for scalar i1 operations so I just extended it to vectors of i1.


https://reviews.llvm.org/D28888

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/avx512-mask-op.ll
  test/CodeGen/X86/avx512bw-mask-op.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28888.84925.patch
Type: text/x-patch
Size: 10059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170119/9327557d/attachment.bin>


More information about the llvm-commits mailing list