[NFC][SimplifyCFG] HoistThenElseCodeToIf(): after hoisting terminator, do return...
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 15 Jul 2020 21:27:36 +0000 (00:27 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 15 Jul 2020 21:32:48 +0000 (00:32 +0300)
commit2815429d08fec06027c4adf81c0b438fb2c72ef0
tree2899b1a0728a5f71ea83dc54048af9a66bb8131a
parent628288658c5ba14923e1be566b64bada650e35bc
[NFC][SimplifyCFG] HoistThenElseCodeToIf(): after hoisting terminator, do return Changed, not just true

Otherwise, if Changed was still false before that,
we would not account for that hoist in NumHoistCommonCode statistic.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp