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:
committed by
Marge Bot
parent
09f1c40f2e
commit
5cfa5b784b
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user