summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunyan He <junyan.he@linux.intel.com>2015-11-17 07:40:18 +0800
committerYang Rong <rong.r.yang@intel.com>2015-11-17 16:23:54 +0800
commitcdb69637bda480c809a2ccd1d9eaba4322043b21 (patch)
treec20ea8f079e6a0f736b5a21005d50dac77c005ec
parentcd2a6045296f4434c48b6a42c16669873ca4be76 (diff)
Backend: Avoid CALC_TIMESTAMP and STORE_PROFILING being scheduled.
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@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--backend/src/backend/gen_insn_scheduling.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/src/backend/gen_insn_scheduling.cpp b/backend/src/backend/gen_insn_scheduling.cpp
index 358a2ce3..43f67c9a 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);
}