[all-commits] [llvm/llvm-project] 9a5379: [InstCombine] Fold two select patterns into and-or
Sanjay Patel via All-commits
all-commits at lists.llvm.org
Mon Mar 28 13:08:11 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9a53793ab803a839908411868700982923939015
https://github.com/llvm/llvm-project/commit/9a53793ab803a839908411868700982923939015
Author: chenglin.bi <chenglin.bi at cixcomputing.com>
Date: 2022-03-28 (Mon, 28 Mar 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
M llvm/test/Transforms/InstCombine/select-and-or.ll
Log Message:
-----------
[InstCombine] Fold two select patterns into and-or
select (~a | c), a, b -> and a, (or c, b) https://alive2.llvm.org/ce/z/bnDobs
select (~c & b), a, b -> and b, (or a, c) https://alive2.llvm.org/ce/z/k2jJHJ
Differential Revision: https://reviews.llvm.org/D122152
More information about the All-commits
mailing list