mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
nir: Turn imov/fmov of undef into undef.
On Broadwell: total instructions in shared programs: 11640214 -> 11639872 (-0.00%) instructions in affected programs: 17744 -> 17402 (-1.93%) helped: 78 HURT: 0 total spills in shared programs: 2924 -> 2922 (-0.07%) spills in affected programs: 104 -> 102 (-1.92%) helped: 1 HURT: 0 total fills in shared programs: 4394 -> 4389 (-0.11%) fills in affected programs: 237 -> 232 (-2.11%) helped: 1 HURT: 0 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
12a912586f
commit
6aa730000f
1 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,9 @@ opt_undef_vecN(nir_builder *b, nir_alu_instr *alu)
|
|||
{
|
||||
if (alu->op != nir_op_vec2 &&
|
||||
alu->op != nir_op_vec3 &&
|
||||
alu->op != nir_op_vec4)
|
||||
alu->op != nir_op_vec4 &&
|
||||
alu->op != nir_op_fmov &&
|
||||
alu->op != nir_op_imov)
|
||||
return false;
|
||||
|
||||
assert(alu->dest.dest.is_ssa);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue