diff options
author | chenglin.bi <chenglin.bi@linaro.org> | 2022-12-03 07:54:49 +0800 |
---|---|---|
committer | chenglin.bi <chenglin.bi@linaro.org> | 2022-12-03 07:56:19 +0800 |
commit | e719550e6f0161da597c9c0a0ceb60b3670ce2c2 (patch) | |
tree | afa89e65b739cbc586317bfc1b02a32af2446a81 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7cf5581712b24d4aea5dffa2e23f0ed42af1954d (diff) | |
download | llvm-e719550e6f0161da597c9c0a0ceb60b3670ce2c2.zip llvm-e719550e6f0161da597c9c0a0ceb60b3670ce2c2.tar.gz llvm-e719550e6f0161da597c9c0a0ceb60b3670ce2c2.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions