Skip to content

Commit

Permalink
[BugFix][VTA] Fix bug in vta runtime DepPop function. (#3208)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
huajsj authored and tqchen committed May 20, 2019
1 parent 78a0f47 commit b7e6976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vta/src/runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b7e6976

Please sign in to comment.