This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Add Merger unit tests (with gcc5 build fix)
ClosedPublic

Authored by gussmith23 on Jul 12 2021, 11:16 AM.

Details

Summary

This is a fix of https://reviews.llvm.org/D104956, which broke the gcc5 build.

We opt to use unit tests rather than check tests as the lattice/merger code is a small C++ component with a well-defined API. Testing this API via check tests would be far less direct and readable. In addition, as the check tests will only be able to test the API indirectly, the tests may break based on unrelated changes; e.g. changes in linalg.

Diff Detail

Event Timeline

gussmith23 created this revision.Jul 12 2021, 11:16 AM
gussmith23 requested review of this revision.Jul 12 2021, 11:16 AM

Apply fix (tuple -> pair)

aartbik accepted this revision.Jul 12 2021, 11:38 AM

Thanks for the fix, Gus!

This revision is now accepted and ready to land.Jul 12 2021, 11:38 AM