aco/optimizer: back propagate modifiers through rcp

Foz-DB Navi21:
Totals from 5 (0.01% of 97591) affected shaders:
Instrs: 1473 -> 1468 (-0.34%)
CodeSize: 7664 -> 7660 (-0.05%)
Latency: 25897 -> 25863 (-0.13%)
InvThroughput: 2737 -> 2731 (-0.22%)
VALU: 1141 -> 1136 (-0.44%)

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38658>
This commit is contained in:
Georg Lehmann
2025-11-25 13:37:26 +01:00
committed by Marge Bot
parent 4442064449
commit 0a82c8cb13

View File

@@ -3165,6 +3165,11 @@ backpropagate_input_modifiers(opt_ctx& ctx, alu_opt_info& info, const alu_opt_op
case aco_opcode::s_mul_f32:
case aco_opcode::s_mul_f16:
case aco_opcode::v_pk_mul_f16:
case aco_opcode::v_rcp_f64:
case aco_opcode::v_rcp_f32:
case aco_opcode::v_rcp_f16:
case aco_opcode::v_s_rcp_f32:
case aco_opcode::v_s_rcp_f16:
case aco_opcode::v_cvt_f32_f64:
case aco_opcode::v_cvt_f64_f32:
case aco_opcode::v_cvt_f16_f32: