[all-commits] [llvm/llvm-project] 0ff20f: [InstSimplify] Fold logic AND to zero

Mehrnoosh via All-commits all-commits at lists.llvm.org
Thu Dec 23 07:03:35 PST 2021


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

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

  Log Message:
  -----------
  [InstSimplify] Fold logic AND to zero

Adding following fold opportunity:
((A | B) ^ A) & ((A | B) ^ B) --> 0

Reviewed By: spatel, rampitec

Differential Revision: https://reviews.llvm.org/D115755




More information about the All-commits mailing list