[Beignet] [PATCH] backend: refine global immediate optimization
rander.wang
rander.wang at intel.com
Fri Jun 30 08:28:58 UTC 2017
for ABS(UD) = UD on Gen, so delete it,
or it make compilation failed on some platform
Signed-off-by: rander.wang <rander.wang at intel.com>
---
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 eb93a20..08e4ccf 100644
--- a/backend/src/backend/gen_insn_selection_optimize.cpp
+++ b/backend/src/backend/gen_insn_selection_optimize.cpp
@@ -424,14 +424,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;
--
2.7.4
More information about the Beignet
mailing list