[all-commits] [llvm/llvm-project] fc8524: [x86] add tests for vector select; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Fri Nov 5 12:02:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc852462d12e3a25b12a7c09baa9ac38aecb17ba
      https://github.com/llvm/llvm-project/commit/fc852462d12e3a25b12a7c09baa9ac38aecb17ba
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-05 (Fri, 05 Nov 2021)

  Changed paths:
    M llvm/test/CodeGen/X86/vselect-zero.ll

  Log Message:
  -----------
  [x86] add tests for vector select; NFC


  Commit: 4d513f2527ffe1cc279012bbc8008671194429c1
      https://github.com/llvm/llvm-project/commit/4d513f2527ffe1cc279012bbc8008671194429c1
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-05 (Fri, 05 Nov 2021)

  Changed paths:
    M llvm/test/CodeGen/AArch64/vselect-constants.ll
    M llvm/test/CodeGen/Thumb2/mve-vselect-constants.ll

  Log Message:
  -----------
  [AArch] add tests for vselect; NFC

These are copy/pasted from the related test patterns in D113212.


  Commit: 7e30404c3b6c3610a0d704e8433a3a3134ce982a
      https://github.com/llvm/llvm-project/commit/7e30404c3b6c3610a0d704e8433a3a3134ce982a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-05 (Fri, 05 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/vselect-constants.ll
    M llvm/test/CodeGen/Thumb2/mve-vselect-constants.ll
    M llvm/test/CodeGen/X86/vselect-zero.ll

  Log Message:
  -----------
  [DAGCombiner] add fold for vselect based on mask of signbit, part 2

This is the 'or' sibling for the fold added with:
D113212

https://alive2.llvm.org/ce/z/tgnp7K

Note that neither of these transforms is poison-safe,
but it does not seem to matter at this level. We have
had the scalar version of D113212 for a long time, so
this is just making optimizer behavior consistent.

We do not have the scalar version of *this* fold,
however, so that is another follow-up.


Compare: https://github.com/llvm/llvm-project/compare/4070f305f9a0...7e30404c3b6c


More information about the All-commits mailing list