From b7e6976b178c06f189823b5142e244d20b06ea66 Mon Sep 17 00:00:00 2001 From: Hua Date: Mon, 20 May 2019 10:01:49 -0700 Subject: [PATCH] [BugFix][VTA] Fix bug in vta runtime DepPop function. (#3208) Issue: One of existing illegal dependency check's condition always true, the correct logic actually should be such check for store and load. Solution: Fix the said logic issue. --- vta/src/runtime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vta/src/runtime.cc b/vta/src/runtime.cc index 9c8de1aaae5e..7af0de1a8f8b 100644 --- a/vta/src/runtime.cc +++ b/vta/src/runtime.cc @@ -514,7 +514,7 @@ class InsnQueue : public BaseQueue { } // Impossible condition CHECK(from != kLoadStage || to != kStoreStage); - CHECK(to != kLoadStage || to != kComputeStage); + CHECK(from != kStoreStage || to != kLoadStage); } // Insert dependency push of load void DepPush(int from, int to) {