[all-commits] [llvm/llvm-project] 35e817: [InstCombine] add tests for bitwise logic with cas...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Jul 28 04:23:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35e8179c470228be1663e14f7497d6fd3e017a2c
      https://github.com/llvm/llvm-project/commit/35e8179c470228be1663e14f7497d6fd3e017a2c
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/and-xor-or.ll

  Log Message:
  -----------
  [InstCombine] add tests for bitwise logic with cast operands; NFC


  Commit: 28ad5dc3f7adae7d779586f9f981a1c22dec195e
      https://github.com/llvm/llvm-project/commit/28ad5dc3f7adae7d779586f9f981a1c22dec195e
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/and-xor-or.ll

  Log Message:
  -----------
  [InstCombine] try harder to narrow bitwise logic with cast operands

This works with any logic + extend:
https://alive2.llvm.org/ce/z/vzsqQD

The motivating case is from issue #56294, but that's still not optimal
(it should simplify completely).


Compare: https://github.com/llvm/llvm-project/compare/fa7fd8ec31e5...28ad5dc3f7ad


More information about the All-commits mailing list