i965/fs: Connect cfg properly in predicated break peephole.
authorMatt Turner <mattst88@gmail.com>
Sun, 31 Aug 2014 18:07:58 +0000 (11:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 5 Sep 2014 16:08:59 +0000 (09:08 -0700)
commit3e248e0418370373ac5bcee4b0a88b501b5b22a9
tree58602d6ef23498d66702484b554c100350531c44
parent1a00f247512f22e58548053a99a706615a178672
i965/fs: Connect cfg properly in predicated break peephole.

If the ENDIF instruction was the only instruction in its block, we'd
leave the successors of the merged if+jump block in a bad state.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83080
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_peephole_predicated_break.cpp