nir: Make "divergent" a property of an SSA value

v2: fix usage in ACO (by Daniel Schürmann)

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4062>
This commit is contained in:
Jason Ekstrand
2019-10-15 14:48:10 -05:00
committed by Marge Bot
parent db94a2d03d
commit ca2d53f451
5 changed files with 122 additions and 95 deletions

View File

@@ -1451,6 +1451,7 @@ nir_ssa_def_init(nir_instr *instr, nir_ssa_def *def,
list_inithead(&def->if_uses);
def->num_components = num_components;
def->bit_size = bit_size;
def->divergent = true; /* This is the safer default */
if (instr->block) {
nir_function_impl *impl =