On 01/08/2016 10:23 PM, Jakub Jelinek wrote:
Now, the merge_if_block caller removes the simple_return from the then_bb in preparation of the merge and expects the two bbs to be merged together,
I'd be tempted to remove the barrier as well at this point. It does look like the cfgrtl code tries to handle isolated barriers, but IMO it's poor practice given that it's easy to avoid here.
Bernd