diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2023-05-17 09:08:22 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-17 23:46:16 +0000 |
commit | 01e9ee79f70e9047fd37796416165c5174d8c70f (patch) | |
tree | 3d6a139918e98ce3af2c1af42b1f0724dbb4c6ae /src/compiler/nir/nir_lower_regs_to_ssa.c | |
parent | 7adf6c75efa215d59d466800ddd7a90065157d8b (diff) | |
download | mesa-01e9ee79f70e9047fd37796416165c5174d8c70f.tar.gz |
nir: Drop unused name from nir_ssa_dest_init
Since 624e799cc34 ("nir: Drop nir_ssa_def::name and nir_register::name"), SSA
defs don't have names, making the name argument unused. Drop it from the
signature and fix the call sites. This was done with the help of the following
Coccinelle semantic patch:
@@
expression A, B, C, D, E;
@@
-nir_ssa_dest_init(A, B, C, D, E);
+nir_ssa_dest_init(A, B, C, D);
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23078>
Diffstat (limited to 'src/compiler/nir/nir_lower_regs_to_ssa.c')
-rw-r--r-- | src/compiler/nir/nir_lower_regs_to_ssa.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/nir/nir_lower_regs_to_ssa.c b/src/compiler/nir/nir_lower_regs_to_ssa.c index 46fc263e42b..74d88b20009 100644 --- a/src/compiler/nir/nir_lower_regs_to_ssa.c +++ b/src/compiler/nir/nir_lower_regs_to_ssa.c @@ -95,8 +95,7 @@ rewrite_dest(nir_dest *dest, void *_state) return true; list_del(&dest->reg.def_link); - nir_ssa_dest_init(instr, dest, reg->num_components, - reg->bit_size, NULL); + nir_ssa_dest_init(instr, dest, reg->num_components, reg->bit_size); nir_phi_builder_value_set_block_def(value, instr->block, &dest->ssa); @@ -179,7 +178,7 @@ rewrite_alu_instr(nir_alu_instr *alu, struct regs_to_ssa_state *state) alu->dest.write_mask = (1 << num_components) - 1; list_del(&alu->dest.dest.reg.def_link); nir_ssa_dest_init(&alu->instr, &alu->dest.dest, num_components, - reg->bit_size, NULL); + reg->bit_size); nir_op vecN_op = nir_op_vec(reg->num_components); @@ -200,7 +199,7 @@ rewrite_alu_instr(nir_alu_instr *alu, struct regs_to_ssa_state *state) } nir_ssa_dest_init(&vec->instr, &vec->dest.dest, reg->num_components, - reg->bit_size, NULL); + reg->bit_size); nir_instr_insert(nir_after_instr(&alu->instr), &vec->instr); nir_phi_builder_value_set_block_def(value, alu->instr.block, |