mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
nir/lower_phis_to_scalar: undef is trivially scalarizable
Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
29addf50e0
commit
959b47262b
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ is_phi_src_scalarizable(nir_phi_src *src,
|
|||
return should_lower_phi(nir_instr_as_phi(src_instr), state);
|
||||
|
||||
case nir_instr_type_load_const:
|
||||
case nir_instr_type_ssa_undef:
|
||||
/* These are trivially scalarizable */
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue