Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodegenC] Updated unit test for sorted CodegenC output
Previously, this unit test generated a `Map<tvm::Target, IRModule>` whose default iteration order was not sorted by function name, built the `Map` of modules, then validated whether the resulting C code was a sorted list of 4 elements. However, this condition was stricter than necessary, as it depended on the number of items added to the `Map` until it was unsorted. This commit updates the test to instead validate that `std::is_sorted` returns true.
- Loading branch information