[all-commits] [llvm/llvm-project] d148a1: [X86] Add tests support shifts + and in `LowerSELE...

goldsteinn via All-commits all-commits at lists.llvm.org
Mon Sep 9 16:19:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d148a1a40461ed27863f4b17ac2bd5914499f413
      https://github.com/llvm/llvm-project/commit/d148a1a40461ed27863f4b17ac2bd5914499f413
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-09-09 (Mon, 09 Sep 2024)

  Changed paths:
    M llvm/test/CodeGen/X86/pull-conditional-binop-through-shift.ll

  Log Message:
  -----------
  [X86] Add tests support shifts + and in `LowerSELECTWithCmpZero`; NFC


  Commit: 88bd507dc2dd9c235b54d718cf84e4ef80d94bc9
      https://github.com/llvm/llvm-project/commit/88bd507dc2dd9c235b54d718cf84e4ef80d94bc9
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-09-09 (Mon, 09 Sep 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/pull-conditional-binop-through-shift.ll

  Log Message:
  -----------
  [X86] Handle shifts + and in `LowerSELECTWithCmpZero`

shifts are the same as sub where rhs == 0 is identity.
and is the inverted case where:
    `SELECT (AND(X,1) == 0), (AND Y, Z), Y`
        -> `(AND Y, (OR NEG(AND(X, 1)), Z))`
With -1 as the identity.

Closes #107910


Compare: https://github.com/llvm/llvm-project/compare/26b786ae2f15...88bd507dc2dd

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list