i965: Replace cfg instances with calls to calculate_cfg().
authorMatt Turner <mattst88@gmail.com>
Sat, 12 Jul 2014 04:24:02 +0000 (21:24 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 21 Jul 2014 17:35:39 +0000 (10:35 -0700)
commit1761671b0627ce8e1c0eae721e1fca5c2d04690e
tree8307a0771b9ce98f737680e1e96b3e56346abf45
parentdd65a6d9ada7cfa1b694d4211d8c95e446b29c62
i965: Replace cfg instances with calls to calculate_cfg().

Avoids regenerating it unnecessarily.

Every program in shader-db improved, none by an amount less than a 1/3
reduction. One Dota2 shader decreased from 62 -> 24.

cfg calculations:     429492 -> 193197 (-55.02%)

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
src/mesa/drivers/dri/i965/brw_fs_peephole_predicated_break.cpp
src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_cse.cpp