i965/cfg: Eliminate an empty then-branch of an if/else/endif
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 25 Feb 2016 03:11:39 +0000 (19:11 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 27 Feb 2016 00:51:27 +0000 (16:51 -0800)
commit69bb063ec22453cdf1b7b363b1c7db47697b586f
treee0d36b9cfce6900f015303b5739a2aa27b401c36
parentc7deee69ea6f64ea5b563985bf19d9deebe73b5b
i965/cfg: Eliminate an empty then-branch of an if/else/endif

On BDW,

total instructions in shared programs: 8448571 -> 8448367 (-0.00%)
instructions in affected programs: 21000 -> 20796 (-0.97%)
helped: 116
HURT: 0

v2: Remove spurious attempt to combine the if_block with the (removed!)
else_block.  Suggested by Matt and Curro.  Correct the comment
describing what the new pass does.  Suggested by Matt.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp