This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transforms] TopologicalSort: Support ops from different blocks
ClosedPublic

Authored by springerm on Oct 10 2022, 11:24 PM.

Details

Summary

This change allows analyzing ops from different blocks, in particular when used in programs that have cf branches.

Diff Detail

Event Timeline

springerm created this revision.Oct 10 2022, 11:24 PM
springerm requested review of this revision.Oct 10 2022, 11:24 PM
Mogball added inline comments.Oct 11 2022, 11:06 AM
mlir/test/Transforms/test-toposort.mlir
42

this doesn't seem like a useful test since the ops are already in order

mlir/test/lib/Transforms/TestTopologicalSort.cpp
56

I don't see this being used anywhere?

springerm updated this revision to Diff 466998.Oct 11 2022, 7:47 PM

address comments

springerm marked 2 inline comments as done.Oct 11 2022, 7:48 PM
Mogball added inline comments.Oct 12 2022, 9:30 AM
mlir/test/Transforms/test-toposort.mlir
43

This is a test pass. You don't need to test the test pass and the errors it emits.

springerm marked an inline comment as done.Oct 12 2022, 6:26 PM
springerm updated this revision to Diff 467336.Oct 12 2022, 6:26 PM

address comments

Mogball accepted this revision.Oct 12 2022, 6:27 PM
This revision is now accepted and ready to land.Oct 12 2022, 6:27 PM
This revision was landed with ongoing or failed builds.Oct 12 2022, 6:36 PM
This revision was automatically updated to reflect the committed changes.