mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 12:50:50 +02:00
aco/optimizer: apply f2f32 without label_usedef
This means we apply it to instructions where an omod label removed label_usedef. Foz-DB Navi21: Totals from 52 (0.07% of 79789) affected shaders: Instrs: 144945 -> 144304 (-0.44%); split: -0.45%, +0.01% CodeSize: 835956 -> 833992 (-0.23%); split: -0.30%, +0.06% Latency: 2850900 -> 2850018 (-0.03%); split: -0.05%, +0.02% InvThroughput: 1299486 -> 1299116 (-0.03%); split: -0.05%, +0.02% Copies: 29638 -> 29803 (+0.56%); split: -0.16%, +0.71% VALU: 94971 -> 94329 (-0.68%); split: -0.69%, +0.01% SALU: 29272 -> 29274 (+0.01%) Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34858>
This commit is contained in:
parent
c0e88c376a
commit
edfba93f4c
1 changed files with 0 additions and 3 deletions
|
|
@ -1885,7 +1885,6 @@ label_instruction(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
case aco_opcode::v_max_i16:
|
||||
case aco_opcode::v_max_u16_e64:
|
||||
case aco_opcode::v_max_i16_e64:
|
||||
case aco_opcode::v_cvt_f32_f16:
|
||||
case aco_opcode::v_mov_b32:
|
||||
case aco_opcode::v_mul_lo_u16:
|
||||
case aco_opcode::v_mul_lo_u16_e64:
|
||||
|
|
@ -3695,8 +3694,6 @@ combine_mad_mix(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
if (!instr->operands[i].isTemp())
|
||||
continue;
|
||||
Temp tmp = instr->operands[i].getTemp();
|
||||
if (!ctx.info[tmp.id()].is_usedef())
|
||||
continue;
|
||||
|
||||
Instruction* conv = ctx.info[tmp.id()].parent_instr;
|
||||
if (conv->opcode != aco_opcode::v_cvt_f32_f16 || !conv->operands[0].isTemp() ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue