aco: don't CSE p_shader_cycles_hi_lo_hi

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Fixes: fae2a85d57 ("aco/gfx12: implement subgroup shader clock")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12243
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32500>
This commit is contained in:
Rhys Perry
2024-12-04 13:36:04 +00:00
committed by Marge Bot
parent 6c70b10f03
commit ab26b99c2c

View File

@@ -313,6 +313,7 @@ can_eliminate(aco_ptr<Instruction>& instr)
if (instr->definitions.empty() || instr->opcode == aco_opcode::p_phi ||
instr->opcode == aco_opcode::p_linear_phi ||
instr->opcode == aco_opcode::p_pops_gfx9_add_exiting_wave_id ||
instr->opcode == aco_opcode::p_shader_cycles_hi_lo_hi ||
instr->definitions[0].isNoCSE())
return false;