[NFC][InstCombine] Refactor InstCombinerImpl::foldSelectIntoOp
authorDavid Sherwood <david.sherwood@arm.com>
Fri, 10 Jun 2022 12:41:53 +0000 (13:41 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Mon, 13 Jun 2022 09:37:07 +0000 (10:37 +0100)
commit83251896d74bf0df85259b2e65b701aa14355705
tree298726cce960a2926dd657089f3be1abd2ece1a0
parentc42a225545b4b494db7866d5db90255926059bc3
[NFC][InstCombine] Refactor InstCombinerImpl::foldSelectIntoOp

Introduce a lambda function so that we remove a lot of code
duplication.

Differential Revision: https://reviews.llvm.org/D127493
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp