[all-commits] [llvm/llvm-project] 4a66b3: [InstCombine] Fold pattern xor(and, or) to select

chenglin.bi via All-commits all-commits at lists.llvm.org
Fri Feb 3 01:12:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a66b3b20ed68379883ce7df52359895f5373da0
      https://github.com/llvm/llvm-project/commit/4a66b3b20ed68379883ce7df52359895f5373da0
  Author: chenglin.bi <chenglin.bi at linaro.org>
  Date:   2023-02-03 (Fri, 03 Feb 2023)

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

  Log Message:
  -----------
  [InstCombine] Fold pattern xor(and, or) to select

(A & B) ^ (A | C) --> A ? ~B : C

https://alive2.llvm.org/ce/z/KCBfXr
https://alive2.llvm.org/ce/z/Pm-zJN
https://alive2.llvm.org/ce/z/VT8uC2

Reviewed By: spatel

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




More information about the All-commits mailing list