Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up lscheduler-walk-graph #96

Open
ecpeterson opened this issue Feb 8, 2019 · 1 comment
Open

Clean up lscheduler-walk-graph #96

ecpeterson opened this issue Feb 8, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@ecpeterson
Copy link
Contributor

The current implementation of this function was written under time pressure and could stand to be cleaned up. For example, using an actual queue would let us write the function much closer to how a breadth-first search / topological sort is typically done, which is likely to save on runtime as well as conceptual overhead.

Clean-up might also allow for early termination: it's likely that lscheduler-instruction-tiers needs only to be run out to some small depth for the greedy addresser to work, and that this savings would be significant when compiling longer programs. The current implementation of lscheduler-walk-graph is not written in a way that supports this.

@ecpeterson ecpeterson added the enhancement New feature or request label Feb 8, 2019
@ghost
Copy link

ghost commented Nov 10, 2021

Just to add here: I think PR "reimplement logical-scheduler walker more efficiently #741" partially addresses this issue, as it was a cleanup of lscheduler-walk-graph and is written "much closer to how a breadth-first search / topological sort is typically done". Not sure about the "actual queue" part. And it does not allow for early termination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant