[all-commits] [llvm/llvm-project] 87b2c7: [Instcombine] fold logic ops to select

chenglin.bi via All-commits all-commits at lists.llvm.org
Wed Jan 4 20:04:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87b2c760d0183246c27f9e1c34e1e1120e03449b
      https://github.com/llvm/llvm-project/commit/87b2c760d0183246c27f9e1c34e1e1120e03449b
  Author: chenglin.bi <chenglin.bi at linaro.org>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/test/Transforms/InstCombine/logical-select.ll

  Log Message:
  -----------
  [Instcombine] fold logic ops to select

(C & X) | ~(C | Y) -> C ? X : ~Y

https://alive2.llvm.org/ce/z/4yLh_i

Reviewed By: spatel

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




More information about the All-commits mailing list