Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions test/module_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,6 @@ static void reverse_module(migraphx::module& m)
m.shuffle(permutation);
}

// Check the module is topologically sorted
// TODO: Use test::make_predicate
static bool is_sorted(migraphx::module& m)
{
std::unordered_set<migraphx::instruction_ref> visited;
for(auto ins : migraphx::iterator_for(m))
{
visited.insert(ins);
if(std::any_of(ins->inputs().begin(), ins->inputs().end(), [&](auto i) {
return not visited.count(i);
}))
{
return false; // Found an input that has not been visited yet
}
}
return true;
}

static migraphx::program create_program()
{
Expand Down
Loading