diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index 27aa45668f81c..7fd9a9e0a7a11 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 eb4c06b50ce81..fc2bbc6db6ee3 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) \