[PATCH] D26134: [AVX-512] Add patterns for matching KANDN using immAllOnesV. Remove patterns that tried to match a -1 constant created by 'not' with a vXi1 type.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 30 23:53:23 PDT 2016


craig.topper created this revision.
craig.topper added reviewers: delena, igorb.
craig.topper added a subscriber: llvm-commits.

Looks like 'not' in patterns doesn't work properly for vector types and ends up creating a patterns that look for a single immediate with a vector type. This can't really occur.

This patch replaces all uses of 'not' on vectors with 'null_frag' and then adds patterns for KANDN. We already had the patterns for KNOT and KXNOR.


https://reviews.llvm.org/D26134

Files:
  lib/Target/X86/X86InstrAVX512.td
  test/CodeGen/X86/avx512-mask-op.ll
  test/CodeGen/X86/avx512-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26134.76352.patch
Type: text/x-patch
Size: 4764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161031/adb09836/attachment.bin>


More information about the llvm-commits mailing list