nir: Remove nir_def::parent_instr
This reduces the footprint of nir_def by 8B on 64-bit systems. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Acked-by: Marek Olšák <maraeo@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38313>
This commit is contained in:
committed by
Marge Bot
parent
de32f9275f
commit
b241b26d11
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user