From f978e0e516c11df19573662844e2b39d89276813 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 13 Dec 2019 16:17:21 +0000 Subject: aco: add integer min/max to can_swap_operands Signed-off-by: Rhys Perry Tested-by: Marge Bot 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 19e78f9e656..77cdf3b04a9 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -393,6 +393,10 @@ bool can_swap_operands(aco_ptr& instr) case aco_opcode::v_xor_b32: case aco_opcode::v_max_f32: case aco_opcode::v_min_f32: + case aco_opcode::v_max_i32: + case aco_opcode::v_min_i32: + case aco_opcode::v_max_u32: + case aco_opcode::v_min_u32: case aco_opcode::v_cmp_eq_f32: case aco_opcode::v_cmp_lg_f32: return true; -- cgit v1.2.3