From ca9e2ceeebe866d38c54329d5961af40fe1d2e4c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 1 Aug 2023 12:17:17 -0400 Subject: [PATCH] nir: Drop trivial reg handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index adfe9fb46ff..20a0734bd2c 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1072,19 +1072,10 @@ add_ssa_def_cb(nir_ssa_def *def, void *state) return true; } -static bool -add_reg_def_cb(nir_dest *dest, void *state) -{ - nir_instr *instr = state; - - return true; -} - static void add_defs_uses(nir_instr *instr) { nir_foreach_src(instr, add_use_cb, instr); - nir_foreach_dest(instr, add_reg_def_cb, instr); nir_foreach_ssa_def(instr, add_ssa_def_cb, instr); }