Skip to content

Commit

Permalink
add assert for unschedulable graph
Browse files Browse the repository at this point in the history
  • Loading branch information
martty committed Apr 26, 2024
1 parent 954e507 commit 3672d3a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/IRPasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,18 @@ namespace vuk {
}
}

for (auto& ind : indegrees) {
if (ind > 0) {
std::vector<Node*> unschedulables;
for (auto i = 0; i < indegrees.size(); i++) {
if (indegrees[i] > 0) {
unschedulables.push_back(schedule_items[i]);
}
}
assert(false);
}
}

return { expected_value };
}

Expand Down

0 comments on commit 3672d3a

Please sign in to comment.