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

Document the output of --show-ssa flag #5044

Open
LogvinovLeon opened this issue May 17, 2024 · 0 comments
Open

Document the output of --show-ssa flag #5044

LogvinovLeon opened this issue May 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LogvinovLeon
Copy link
Contributor

Problem

When trying to reason about performance of Noir programs and comparing - why one version is slower than another - it's useful to understand how does the compiler output as well as the intermediate compiler output differ between two versions.
nargo has the --show-ssa flag that outputs this into, but it's hard to make sense of it without the internal knowledge of compiler implementation details.

This issue - asks for documentation so that we can debug some issues ourselves and better understand what does compiler do under the hood.

Happy Case

The output of --show-ssa is documented and advanced Noir users can read about different compiler passes & the inner workings of compiler front-end.

Project Impact

Nice-to-have

Impact Context

Without it - the only thing we can use to reason about performance is nargo info.
This is not enough as when I write two programs and first takes up 5k gates and second - 6k - there is no way for me to answer the WHY question.

Workaround

None

Workaround Description

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

@LogvinovLeon LogvinovLeon added the enhancement New feature or request label May 17, 2024
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
Status: 📋 Backlog
Development

No branches or pull requests

1 participant