[all-commits] [llvm/llvm-project] 15dd5e: [X86] Support ANDNP combine through vector_shuffle

Evgenii Kudriashov via All-commits all-commits at lists.llvm.org
Thu Dec 22 01:30:20 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15dd5ed96cf1ecd29842ef6d3bc9b5eea12dccfd
      https://github.com/llvm/llvm-project/commit/15dd5ed96cf1ecd29842ef6d3bc9b5eea12dccfd
  Author: Evgenii Kudriashov <evgenii.kudriashov at intel.com>
  Date:   2022-12-22 (Thu, 22 Dec 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/combine-and.ll

  Log Message:
  -----------
  [X86] Support ANDNP combine through vector_shuffle

Combine
```
   and (vector_shuffle<Z,...,Z>
            (insert_vector_elt undef, (xor X, -1), Z), undef), Y
   ->
   andnp (vector_shuffle<Z,...,Z>
              (insert_vector_elt undef, X, Z), undef), Y
```

Reviewed By: RKSimon, pengfei

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




More information about the All-commits mailing list