This is an archive of the discontinued LLVM Phabricator instance.

[mlir][llvm] Ordered traversal in LLVM IR import.
ClosedPublic

Authored by gysit on Oct 19 2022, 12:13 AM.

Details

Summary

The revision performs a topological sort of the blocks to
ensure the operations are processed in dominance order.
After the change, we do not need to introduce dummy
instructions if an operand has not yet been processed.
Additionally, the revision also moves and simplifies the
control-flow related tests to a separate test file.

Diff Detail

Event Timeline

gysit created this revision.Oct 19 2022, 12:13 AM
gysit requested review of this revision.Oct 19 2022, 12:13 AM
ftynse accepted this revision.Oct 19 2022, 1:07 AM

Nice!

This revision is now accepted and ready to land.Oct 19 2022, 1:07 AM
This revision was automatically updated to reflect the committed changes.

This is great! Thanks, Tobias!