[all-commits] [llvm/llvm-project] 02a3e2: [NFC][InstCombine] Add tests with invertible hands...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sun Dec 18 14:10:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02a3e22ca2c3cf0653ffccbee02ce22abd9d0731
      https://github.com/llvm/llvm-project/commit/02a3e22ca2c3cf0653ffccbee02ce22abd9d0731
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    A llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-logical-and.ll
    A llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-logical-or.ll

  Log Message:
  -----------
  [NFC][InstCombine] Add tests with invertible hands of logical operators


  Commit: 9f0c9e4725f6a6f1cad857102dc70fce759e610d
      https://github.com/llvm/llvm-project/commit/9f0c9e4725f6a6f1cad857102dc70fce759e610d
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-and.ll
    M llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-logical-and.ll
    M llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-logical-or.ll
    M llvm/test/Transforms/InstCombine/sink-not-into-another-hand-of-or.ll

  Log Message:
  -----------
  [InstCombine] Try to sink `not` of one operand of logical operation into another hand

Matches what we do for binary operations, but a special care needs
is needed to preserve operand order, as the logical operations
are not strictly commutative!


Compare: https://github.com/llvm/llvm-project/compare/138a97578b9d...9f0c9e4725f6


More information about the All-commits mailing list