[all-commits] [llvm/llvm-project] e71955: [InstCombine] fold icmp + select pattern by distri...
chenglin.bi via All-commits
all-commits at lists.llvm.org
Fri Dec 2 15:56:37 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e719550e6f0161da597c9c0a0ceb60b3670ce2c2
https://github.com/llvm/llvm-project/commit/e719550e6f0161da597c9c0a0ceb60b3670ce2c2
Author: chenglin.bi <chenglin.bi at linaro.org>
Date: 2022-12-03 (Sat, 03 Dec 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
M llvm/test/Transforms/InstCombine/select-cmp.ll
Log Message:
-----------
[InstCombine] fold icmp + select pattern by distributive laws
`C ? (Y != X) : (Z != X) --> (C ? Y : Z) != X`
`C ? (Y == X) : (Z == X) --> (C ? Y : Z) == X`
https://alive2.llvm.org/ce/z/-frXfs
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D139076
More information about the All-commits
mailing list