[SimplifyCFG] Common code sinking: relax restriction on non-uncond predecessors
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 28 Apr 2021 19:47:15 +0000 (22:47 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 28 Apr 2021 22:01:01 +0000 (01:01 +0300)
commit1886aad9d03b95c35260d6d8013d746bd39dc94a
tree7f74c863f8aee76cbb13878bc9ebffea5693624c
parent410d03aabf725abcd6e3c5d11f4c2f4c9604627b
[SimplifyCFG] Common code sinking: relax restriction on non-uncond predecessors

While we have a known profitability issue for sinking in presence of
non-unconditional predecessors, there isn't any known issues
for having multiple such non-unconditional predecessors,
so said restriction appears to be artificial. Lift it.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/X86/sink-common-code.ll