mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 23:10:47 +02:00
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:
parent
09f1c40f2e
commit
5cfa5b784b
3 changed files with 0 additions and 26 deletions
|
|
@ -2227,8 +2227,6 @@ int get_op_fixed_to_def(Instruction* instr);
|
|||
/* utilities for dealing with register demand */
|
||||
RegisterDemand get_live_changes(aco_ptr<Instruction>& instr);
|
||||
RegisterDemand get_temp_registers(aco_ptr<Instruction>& instr);
|
||||
RegisterDemand get_demand_before(RegisterDemand demand, aco_ptr<Instruction>& instr,
|
||||
aco_ptr<Instruction>& instr_before);
|
||||
|
||||
/* number of sgprs that need to be allocated but might notbe addressable as s0-s105 */
|
||||
uint16_t get_extra_sgprs(Program* program);
|
||||
|
|
|
|||
|
|
@ -75,17 +75,6 @@ get_temp_registers(aco_ptr<Instruction>& instr)
|
|||
return demand_after;
|
||||
}
|
||||
|
||||
RegisterDemand
|
||||
get_demand_before(RegisterDemand demand, aco_ptr<Instruction>& instr,
|
||||
aco_ptr<Instruction>& instr_before)
|
||||
{
|
||||
demand -= get_live_changes(instr);
|
||||
demand -= get_temp_registers(instr);
|
||||
if (instr_before)
|
||||
demand += get_temp_registers(instr_before);
|
||||
return demand;
|
||||
}
|
||||
|
||||
namespace {
|
||||
struct PhiInfo {
|
||||
uint16_t logical_phi_sgpr_ops = 0;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue