From f1449e99b94fe60f3f05c7166ad03246ece25908 Mon Sep 17 00:00:00 2001 From: Marek Olsak Date: Tue, 25 Nov 2014 09:49:23 +0000 Subject: [PATCH] R600/SI: Disable commutativity for MIN/MAX_LEGACY llvm-svn: 222746 --- llvm/lib/Target/R600/SIInstructions.td | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td index 00ce9bfcc269..eebf3b3d21d9 100644 --- a/llvm/lib/Target/R600/SIInstructions.td +++ b/llvm/lib/Target/R600/SIInstructions.td @@ -1404,7 +1404,7 @@ defm V_MUL_U32_U24 : VOP2Inst , "v_mul_u32_u24", VOP_I32_I32_I32, AMDGPUmul_u24 >; //defm V_MUL_HI_U32_U24 : VOP2_32 <0x0000000c, "v_mul_hi_u32_u24", []>; - +} // End isCommutable = 1 defm V_MIN_LEGACY_F32 : VOP2Inst , "v_min_legacy_f32", VOP_F32_F32_F32, AMDGPUfmin_legacy @@ -1414,6 +1414,7 @@ defm V_MAX_LEGACY_F32 : VOP2Inst , "v_max_legacy_f32", VOP_F32_F32_F32, AMDGPUfmax_legacy >; +let isCommutable = 1 in { defm V_MIN_F32 : VOP2Inst , "v_min_f32", VOP_F32_F32_F32, fminnum>; defm V_MAX_F32 : VOP2Inst , "v_max_f32", VOP_F32_F32_F32, fmaxnum>; defm V_MIN_I32 : VOP2Inst , "v_min_i32", VOP_I32_I32_I32, AMDGPUsmin>;