[all-commits] [llvm/llvm-project] 62c51a: [InstSimplify] Fold A|B | (A^B) --> A|B

asif-manzoor via All-commits all-commits at lists.llvm.org
Mon Nov 15 15:51:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62c51a72f9e7540fb58bba7e116a4b411ab18bef
      https://github.com/llvm/llvm-project/commit/62c51a72f9e7540fb58bba7e116a4b411ab18bef
  Author: Mehrnoosh Heidarpour <mehrnoosh.heidarpour at huawei.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

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

  Log Message:
  -----------
  [InstSimplify] Fold A|B | (A^B) --> A|B

This patch adds the following fold opportunity:
A|B | (A^B) --> A|B

that is reported here : https://bugs.llvm.org/show_bug.cgi?id=52479

https://alive2.llvm.org/ce/z/33-My-

Test cases with base results are added in D113860

Reviewed By: rampitec

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




More information about the All-commits mailing list