From 71e568fa595443faac9b5cce4dddfdc8f6cc2157 Mon Sep 17 00:00:00 2001 From: rander Date: Fri, 30 Jun 2017 16:28:58 +0800 Subject: backend: refine global immediate optimization for ABS(UD) = UD on Gen, so delete it, or it make compilation failed on some platform Signed-off-by: rander.wang Reviewed-by: Yang Rong --- backend/src/backend/gen_insn_selection_optimize.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/src/backend/gen_insn_selection_optimize.cpp b/backend/src/backend/gen_insn_selection_optimize.cpp index 71333a40..e52d562e 100644 --- a/backend/src/backend/gen_insn_selection_optimize.cpp +++ b/backend/src/backend/gen_insn_selection_optimize.cpp @@ -459,14 +459,10 @@ namespace gbe else if(src0.type == GEN_TYPE_UD || src1.type == GEN_TYPE_UD) { unsigned int s0 = src0.value.ud; - if (src0.absolute) - s0 = abs(s0); if (src0.negation) s0 = -s0; unsigned int s1 = src1.value.ud; - if (src1.absolute) - s1 = abs(s1); if (src1.negation) s1 = -s1; -- cgit v1.2.3