diff options
author | Kenneth Graunke <[email protected]> | 2013-03-06 10:48:55 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-07-06 18:18:51 -0700 |
commit | 3c8dc48ad1d4061a2a1d0b9ea3126350b98274f0 (patch) | |
tree | 82e695451b014635808a95d411f1d046849a652f /src/mesa/drivers/dri/i965/brw_vec4.h | |
parent | 848fc7f7103b36b013e16910f6e72941df156c55 (diff) |
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 <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 9d76beaf2af..87247ea1ec2 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -384,6 +384,8 @@ public: bool dead_code_eliminate(); bool virtual_grf_interferes(int a, int b); bool opt_copy_propagation(); + bool opt_cse_local(bblock_t *, exec_list *); + bool opt_cse(); bool opt_algebraic(); bool opt_register_coalesce(); void opt_set_dependency_control(); |