diff options
author | Rhys Perry <[email protected]> | 2019-12-13 16:17:21 +0000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-14 12:56:28 +0000 |
commit | f978e0e516c11df19573662844e2b39d89276813 (patch) | |
tree | 179cd187f08103993a48618533d4137c5d8af2cf | |
parent | f92a89a9798399e0641a319b543b426b0a2e9766 (diff) |
aco: add integer min/max to can_swap_operands
Signed-off-by: Rhys Perry <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2883>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2883>
-rw-r--r-- | src/amd/compiler/aco_optimizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<Instruction>& 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; |