[Beignet] [PATCH 16/21 V3] Backend: Avoid CALC_TIMESTAMP and STORE_PROFILING being scheduled.

junyan.he at inbox.com junyan.he at inbox.com
Mon Nov 16 15:40:18 PST 2015


From: Junyan He <junyan.he at linux.intel.com>

We do not want CALC_TIMESTAMP and STORE_PROFILING to be scheduled
with other instructions, because it will get the wrong timestamps.

Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
 backend/src/backend/gen_insn_scheduling.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/backend/src/backend/gen_insn_scheduling.cpp b/backend/src/backend/gen_insn_scheduling.cpp
index 358a2ce..43f67c9 100644
--- a/backend/src/backend/gen_insn_scheduling.cpp
+++ b/backend/src/backend/gen_insn_scheduling.cpp
@@ -589,7 +589,9 @@ namespace gbe
           || node->insn.opcode == SEL_OP_ENDIF
           || node->insn.opcode == SEL_OP_WHILE
           || node->insn.opcode == SEL_OP_READ_ARF
-          || node->insn.opcode == SEL_OP_BARRIER)
+          || node->insn.opcode == SEL_OP_BARRIER
+          || node->insn.opcode == SEL_OP_CALC_TIMESTAMP
+          || node->insn.opcode == SEL_OP_STORE_PROFILING)
         tracker.makeBarrier(insnID, insnNum);
     }
 
-- 
1.7.9.5





More information about the Beignet mailing list