[InstCombine][Test] Test for fix of replacing select with Phis when branch has the...
authorMax Kazantsev <mkazantsev@azul.com>
Fri, 17 Jul 2020 09:59:19 +0000 (16:59 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Fri, 17 Jul 2020 10:16:28 +0000 (17:16 +0700)
commitdf6e185e8f895686510117301e568e5043909b66
treef6992f0b82f4beb8df040fe31e104aefef23d78c
parentbb160e769dbef25fe0aa130c71458a8f686ccf80
[InstCombine][Test] Test for fix of replacing select with Phis when branch has the same labels

An additional test that allows to check the correctness of handling the case of the same
branch labels in the dominator when trying to replace select with phi-node.

Patch By: Kirill Polushin
Differential Revision: https://reviews.llvm.org/D84006
Reviewed By: mkazantsev
llvm/test/Transforms/InstCombine/select.ll