mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
aco: add 32-bit integer addition to can_swap_operands
fossil-db (Navi): Totals from 167 (0.12% of 135946) affected shaders: CodeSize: 484892 -> 482628 (-0.47%) 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/5695>
This commit is contained in:
parent
ec9920e72b
commit
15a17fddad
1 changed files with 4 additions and 0 deletions
|
|
@ -524,6 +524,10 @@ bool can_swap_operands(aco_ptr<Instruction>& instr)
|
|||
return false;
|
||||
|
||||
switch (instr->opcode) {
|
||||
case aco_opcode::v_add_u32:
|
||||
case aco_opcode::v_add_co_u32:
|
||||
case aco_opcode::v_add_co_u32_e64:
|
||||
case aco_opcode::v_add_i32:
|
||||
case aco_opcode::v_add_f16:
|
||||
case aco_opcode::v_add_f32:
|
||||
case aco_opcode::v_mul_f16:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue