From 15a17fddad6123efc4da1012f8bc9fe3acf87ac4 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 30 Jun 2020 16:16:18 +0100 Subject: [PATCH] aco: add 32-bit integer addition to can_swap_operands MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fossil-db (Navi): Totals from 167 (0.12% of 135946) affected shaders: CodeSize: 484892 -> 482628 (-0.47%) Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_optimizer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index 214e675cd12..ab38821479e 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -524,6 +524,10 @@ bool can_swap_operands(aco_ptr& 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: -- 2.30.2