summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrander <rander.wang@intel.com>2017-06-30 16:28:58 +0800
committerYang Rong <rong.r.yang@intel.com>2017-07-20 12:20:59 +0800
commit71e568fa595443faac9b5cce4dddfdc8f6cc2157 (patch)
tree166e947fc853f6dd88bfe94ea293e4cc82c3f6e8
parentb62f814bfcbef10fc65bf171205ce49da16aad6b (diff)
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 <rander.wang@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--backend/src/backend/gen_insn_selection_optimize.cpp4
1 files changed, 0 insertions, 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;