mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
aco/live_var_analysis: don't set lateKill for p_interp_gfx11 m0 operand
There is no danger of overwriting m0 anymore.
Fixes: dfc13fcf9f ('aco: introduce Operand flag 'CopyKill'')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31127>
This commit is contained in:
parent
1aa7218a1f
commit
07b1fd64b7
1 changed files with 2 additions and 4 deletions
|
|
@ -214,10 +214,8 @@ process_live_temps_per_block(live_ctx& ctx, Block* block)
|
|||
insn->opcode == aco_opcode::v_mqsad_u32_u8) {
|
||||
for (Operand& op : insn->operands)
|
||||
op.setLateKill(true);
|
||||
} else if (insn->opcode == aco_opcode::p_interp_gfx11) {
|
||||
insn->operands.back().setLateKill(true); /* we don't want the bld.lm def to use m0 */
|
||||
if (insn->operands.size() == 7)
|
||||
insn->operands[5].setLateKill(true); /* we re-use the destination reg in the middle */
|
||||
} else if (insn->opcode == aco_opcode::p_interp_gfx11 && insn->operands.size() == 7) {
|
||||
insn->operands[5].setLateKill(true); /* we re-use the destination reg in the middle */
|
||||
} else if (insn->opcode == aco_opcode::v_interp_p1_f32 && ctx.program->dev.has_16bank_lds) {
|
||||
insn->operands[0].setLateKill(true);
|
||||
} else if (insn->opcode == aco_opcode::p_init_scratch) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue