aco: remove get_demand_before()

The register demand before executing an instruction is now included
in the instruction's register demand and this function is unused.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29804>
This commit is contained in:
Daniel Schürmann
2024-06-20 10:23:47 +02:00
committed by Marge Bot
parent 09f1c40f2e
commit 5cfa5b784b
3 changed files with 0 additions and 26 deletions
-13
View File
@@ -295,19 +295,6 @@ get_rematerialize_info(spill_ctx& ctx)
}
}
RegisterDemand
get_demand_before(spill_ctx& ctx, unsigned block_idx, unsigned idx)
{
if (idx == 0) {
RegisterDemand demand = ctx.program->live.register_demand[block_idx][idx];
aco_ptr<Instruction>& instr = ctx.program->blocks[block_idx].instructions[idx];
aco_ptr<Instruction> instr_before(nullptr);
return get_demand_before(demand, instr, instr_before);
} else {
return ctx.program->live.register_demand[block_idx][idx - 1];
}
}
RegisterDemand
init_live_in_vars(spill_ctx& ctx, Block* block, unsigned block_idx)
{