[FlattenCFG] Add a test to demonstrate bug
authorMax Kazantsev <mkazantsev@azul.com>
Fri, 21 Apr 2023 09:41:51 +0000 (16:41 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Fri, 21 Apr 2023 09:42:57 +0000 (16:42 +0700)
commite9ecc484ecc5213ec527c10afd23400912833a8f
treeaf389ccada1f7b90c346694024fb9334b2bea3eb
parent66219728e344626201e83ff9e1c7db3ede2b12fe
[FlattenCFG] Add a test to demonstrate bug

FlattenCFGOpt combines the conditions but doesn't update branch with a
new combined condition. It happens when one of the combinable condition
is inverted and has more then 1 user.

Patch by Aleksandr Popov!

Differential Revision: https://reviews.llvm.org/D148706
llvm/test/Transforms/Util/flattencfg.ll