[all-commits] [llvm/llvm-project] ec7122: [InstCombine] Fold ((A&B)^C)|B

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Wed May 4 17:56:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec7122f64b8d307a96413d154c41fca5fbb991bd
      https://github.com/llvm/llvm-project/commit/ec7122f64b8d307a96413d154c41fca5fbb991bd
  Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

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

  Log Message:
  -----------
  [InstCombine] Fold ((A&B)^C)|B

Fold ((A&B)^C)|B into C|B.

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

This addresses the issue https://github.com/llvm/llvm-project/issues/55169

Test plan: ninja check-all

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




More information about the All-commits mailing list