From a4eebb556ae2a9757e496a0cf804a46458df9ce0 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 25 Jul 2022 16:03:08 -0400 Subject: [PATCH] pan/bi: Inline node_to_index One user, now trivial. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_ra.c | 2 +- src/panfrost/bifrost/compiler.h | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index 27aa456..7fd9a9e 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -1137,7 +1137,7 @@ bi_register_allocate(bi_context *ctx) spill_count = ALIGN_POT(spill_count, 16); spill_count += bi_spill_register(ctx, - bi_node_to_index(spill_node, bi_max_temp(ctx)), + bi_get_index(spill_node, false, 0), spill_count); /* In case the spill affected an instruction with tied diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index eb4c06b..fc2bbc6 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -948,15 +948,6 @@ bi_dest_index(nir_dest *dst) return bi_get_index(dst->ssa.index, false, 0); } -static inline bi_index -bi_node_to_index(unsigned node, unsigned node_count) -{ - assert(node < node_count); - assert(node_count < ~0u); - - return bi_get_index(node, false, 0); -} - /* Iterators for Bifrost IR */ #define bi_foreach_block(ctx, v) \ -- 2.7.4