Mesa (master): nir/lower_phis_to_scalar: undef is trivially scalarizable

Rob Clark robclark at kemper.freedesktop.org
Fri Jul 3 12:57:13 UTC 2015


Module: Mesa
Branch: master
Commit: 959b47262b339ad6d1a072c17a1abe9735ead41d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=959b47262b339ad6d1a072c17a1abe9735ead41d

Author: Rob Clark <robclark at freedesktop.org>
Date:   Fri Jun 26 15:05:32 2015 -0400

nir/lower_phis_to_scalar: undef is trivially scalarizable

Signed-off-by: Rob Clark <robclark at freedesktop.org>
Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>

---

 src/glsl/nir/nir_lower_phis_to_scalar.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/nir/nir_lower_phis_to_scalar.c b/src/glsl/nir/nir_lower_phis_to_scalar.c
index a57d253..739170d 100644
--- a/src/glsl/nir/nir_lower_phis_to_scalar.c
+++ b/src/glsl/nir/nir_lower_phis_to_scalar.c
@@ -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;
 




More information about the mesa-commit mailing list