From: Jason Ekstrand Date: Wed, 25 Jul 2018 17:33:33 +0000 (-0700) Subject: nir: Take if uses into account in ssa_def_components_read X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a4ab4c120b97397321b8a86abdbdbe96ee42141;p=mesa.git nir: Take if uses into account in ssa_def_components_read Fixes: d800b7daa5440 "nir: Add a helper for figuring out what..." Reviewed-by: Caio Marcelo de Oliveira Filho --- diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index bc7f05b3e86..a849664134f 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1446,6 +1446,9 @@ nir_ssa_def_components_read(const nir_ssa_def *def) } } + if (!list_empty(&def->if_uses)) + read_mask |= 1; + return read_mask; }