diff options
author | chenglin.bi <chenglin.bi@linaro.org> | 2022-12-14 04:42:09 +0800 |
---|---|---|
committer | chenglin.bi <chenglin.bi@linaro.org> | 2022-12-14 04:43:06 +0800 |
commit | c8647738cd654d9ecfdc047e480d05a997d3127b (patch) | |
tree | 0d853950aebaff2831768569022d0cc41edd101a /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 61311f3c9363534eda3bc9b8a5edbab80048cdd4 (diff) | |
download | llvm-c8647738cd654d9ecfdc047e480d05a997d3127b.zip llvm-c8647738cd654d9ecfdc047e480d05a997d3127b.tar.gz llvm-c8647738cd654d9ecfdc047e480d05a997d3127b.tar.bz2 |
[InstCombine] Fold logic-and/logic-or by distributive laws
X && Z || Y && Z --> (X || Y) && Z
https://alive2.llvm.org/ce/z/nM6kZb
(X || Z) && (Y || Z) --> (X && Y) || Z
https://alive2.llvm.org/ce/z/_EWLRR
Fix: https://github.com/llvm/llvm-project/issues/53861
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D139408
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions