[NFC][SimplifyCFG] Add test showing that profitability check for sinking is broken
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 28 Apr 2021 21:49:21 +0000 (00:49 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 28 Apr 2021 22:01:00 +0000 (01:01 +0300)
commita8e273f2ed769a3bf1207a02bf609518bb3ae5be
tree0fc0a22b1d586139ad68a89dec99811d44980a77
parent12c8027ce39f776a5cc1e322b0f125362384b8aa
[NFC][SimplifyCFG] Add test showing that profitability check for sinking is broken

Essentially, we can't promise that the instruction is sinkable without
introducing PHI's until we know that it is profitable to sink.
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/X86/sink-common-code.ll