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
(cherry picked from commit ab26b99c2c)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32730>
This commit is contained in:
Rhys Perry 2024-12-04 13:36:04 +00:00 committed by Dylan Baker
parent f750108aa9
commit 3cffcc3da7
2 changed files with 2 additions and 1 deletions

View file

@ -124,7 +124,7 @@
"description": "aco: don't CSE p_shader_cycles_hi_lo_hi",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "fae2a85d57a49bfbd4efb05ea1d4e53071c2ffd2",
"notes": null

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;