[InstCombine] Merge foldAndOfICmps() and foldOrOfICmps() (NFCI)
authorNikita Popov <npopov@redhat.com>
Fri, 22 Apr 2022 10:21:32 +0000 (12:21 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 22 Apr 2022 10:48:03 +0000 (12:48 +0200)
commitba46ae7bd85351359bb940c36fec67817a0e376d
treefd1f0060b9ab67fd347f278f325ec7a06d8d0f52
parente07a7fd5c0ef3b46f11471741f8dfe4e6057c5ad
[InstCombine] Merge foldAndOfICmps() and foldOrOfICmps() (NFCI)

Folds are supposed to always be added in conjugated pairs for and
and or. Merge the two functions to make folds for which this is
currently not the case more obvious.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h