mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 12:30:19 +01:00
i965/vec4: Use nir_move_vec_src_uses_to_dest
The idea here is not that it gives register coalescing a little bit of a helping hand. It doesn't actually fix the coalescing problems, but it seems to help a good bit. Shader-db results for vec4 programs on Haswell: total instructions in shared programs: 1746280 -> 1683959 (-3.57%) instructions in affected programs: 1259166 -> 1196845 (-4.95%) helped: 11363 HURT: 148 v2 (Jason Ekstrand): - Run nir_move_vec_src_uses_to_dest after going out of SSA - New shader-db numbers Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
parent
a6c467d6c5
commit
fc11dbe13f
1 changed files with 3 additions and 0 deletions
|
|
@ -187,6 +187,9 @@ brw_create_nir(struct brw_context *brw,
|
|||
nir_validate_shader(nir);
|
||||
|
||||
if (!is_scalar) {
|
||||
nir_move_vec_src_uses_to_dest(nir);
|
||||
nir_validate_shader(nir);
|
||||
|
||||
nir_lower_vec_to_movs(nir);
|
||||
nir_validate_shader(nir);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue