i965/vec4: Rewrite dead code elimination to use live in/out.
authorMatt Turner <mattst88@gmail.com>
Mon, 3 Nov 2014 04:36:53 +0000 (20:36 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 2 Dec 2014 00:42:13 +0000 (16:42 -0800)
commit5df88c2096281f416b2738debac1c4c329e29673
treec6d02d8dc2c34baa1b7c687875244a2a5db323d5
parent7a5cc789def94af7e5c364cce7b0884eee2bcc6b
i965/vec4: Rewrite dead code elimination to use live in/out.

Improves 359 shaders by >=10%
         114 shaders by >=20%
          91 shaders by >=30%
          82 shaders by >=40%
          22 shaders by >=50%
           4 shaders by >=60%
           2 shaders by >=80%

total instructions in shared programs: 5845346 -> 5822422 (-0.39%)
instructions in affected programs:     364979 -> 342055 (-6.28%)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp [new file with mode: 0644]