[all-commits] [llvm/llvm-project] 9d218b: [InstCombine] reduce or-xor-or patterns

Sanjay Patel via All-commits all-commits at lists.llvm.org
Sat Aug 13 06:59:32 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d218b61cc50256b0cd32ba4ccf9009215854762
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-08-13 (Sat, 13 Aug 2022)

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

  Log Message:
  [InstCombine] reduce or-xor-or patterns

(A | ?) | (A ^ B) --> (A | ?) | B

This extends the existing transform to peek through
another 'or' instruction for the common operand.

This is the underlying missing fold that should allow
issue #56711 and issue #57120 to reduce even more.

More information about the All-commits mailing list