Lines Matching refs:demand
438 RegisterDemand demand = ctx.register_demand[block_idx][idx];
441 return get_demand_before(demand, instr, instr_before);
526 /* if VGPR demand is low enough, select SGPRs */
529 /* if SGPR demand is low enough, break */
625 /* if register demand is still too high, we just keep all spilled live vars
1207 /* check if register demand is low enough before and after the current instruction */
1889 /* calculate target register demand */
1890 const RegisterDemand demand = program->max_reg_demand; /* current max */
1897 if (demand.sgpr > sgpr_limit) {
1898 unsigned sgpr_spills = demand.sgpr - sgpr_limit;
1902 if (demand.vgpr + extra_vgprs > vgpr_limit) {
1904 if (demand.sgpr + extra_sgprs > sgpr_limit) {
1906 unsigned sgpr_spills = demand.sgpr + extra_sgprs - sgpr_limit;
1910 /* the spiller has to target the following register demand */