[all-commits] [llvm/llvm-project] e94134: [InstSimplify] Add logic 'or' fold to -1

Mehrnoosh via All-commits all-commits at lists.llvm.org
Sat Dec 4 12:11:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e94134052fda15bcac2d237304abbfeb866d6a27
      https://github.com/llvm/llvm-project/commit/e94134052fda15bcac2d237304abbfeb866d6a27
  Author: Mehrnoosh Heidarpour <mehrnoosh.heidarpour at huawei.com>
  Date:   2021-12-04 (Sat, 04 Dec 2021)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/or.ll

  Log Message:
  -----------
  [InstSimplify] Add logic 'or' fold to -1

Adding the following folding opportunity:
(~A | B) | (A ^ B) --> -1

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

Differential revision: https://reviews.llvm.org/D114996




More information about the All-commits mailing list