diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 65201352dfb..a1143675b47 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1663,7 +1663,6 @@ nir_def_init(nir_instr *instr, nir_def *def, unsigned num_components, unsigned bit_size) { - def->parent_instr = instr; list_inithead(&def->uses); def->num_components = num_components; def->bit_size = bit_size; diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 7822e3de849..f3ba8222c65 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1002,9 +1002,6 @@ nir_instr_is_last(const nir_instr *instr) } typedef struct nir_def { - /** Instruction which produces this SSA value. */ - nir_instr *parent_instr; - /** set of nir_instrs where this register is used (read from) */ struct list_head uses;