[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.

Igor Breger via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 07:18:14 PDT 2016


igorb added a comment.

Hello Craig,
You are correct, 'not' node is incorrect in this case , but i think we can use 'vnot' .  It generate correct patterns

   // Src: (xor:v8i1 VK8:v8i1:$src, (build_vector:v8i1)<<P:Predicate_immAllOnesV>>) - Complexity = 7
  // Dst: (KNOTBrr:v8i1 VK8:v8i1:$src)


https://reviews.llvm.org/D26134





More information about the llvm-commits mailing list