[InstCombine][NFC] Simplify check in sinking
authorMax Kazantsev <mkazantsev@azul.com>
Mon, 18 May 2020 11:09:24 +0000 (18:09 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Mon, 18 May 2020 11:10:40 +0000 (18:10 +0700)
commite47c101e35fd8d046f7d4fa296c17db508e8cdc2
treed432b0af541194ce45c216cb926c0f6924b63453
parenta6a237f2046ad8993db30481c8b61aeb2f73a5ad
[InstCombine][NFC] Simplify check in sinking

We just need to check that the only predecessor of user parent is
BB, we don't need to iterate through BB's successors for it.
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp