i965/vec4: Add basic common subexpression elimination.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Mar 2013 18:48:55 +0000 (10:48 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 7 Jul 2014 01:18:51 +0000 (18:18 -0700)
commit3c8dc48ad1d4061a2a1d0b9ea3126350b98274f0
tree82e695451b014635808a95d411f1d046849a652f
parent848fc7f7103b36b013e16910f6e72941df156c55
i965/vec4: Add basic common subexpression elimination.

[mattst88]: Modified to perform CSE on instructions with
            the same writemask. Offered no improvement before.

total instructions in shared programs: 1995633 -> 1995185 (-0.02%)
instructions in affected programs:     14410 -> 13962 (-3.11%)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-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.h
src/mesa/drivers/dri/i965/brw_vec4_cse.cpp [new file with mode: 0644]