aco: insert p_end_wqm before p_jump_to_epilog
Otherwise, we can transition to exact before p_jump_to_epilog, then transition to WQM again and then back to exact: p_jump_to_epilog //transitions to exact p_logical_end //transitions to wqm p_end_wqm //transitions to exact We rely on ssa elimination to clean most of this up. fossil-db (navi21): Totals from 1 (0.00% of 79330) affected shaders: Instrs: 111 -> 110 (-0.90%) CodeSize: 572 -> 568 (-0.70%) Copies: 16 -> 15 (-6.25%) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25440>
This commit is contained in:
@@ -11441,6 +11441,7 @@ finish_program(isel_context* ctx)
|
||||
/* End WQM before: */
|
||||
if (instr->isVMEM() || instr->isFlatLike() || instr->isDS() || instr->isEXP() ||
|
||||
instr->opcode == aco_opcode::p_dual_src_export_gfx11 ||
|
||||
instr->opcode == aco_opcode::p_jump_to_epilog ||
|
||||
instr->opcode == aco_opcode::p_logical_start)
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user