-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Pretty print timings for codegen (#4659)
# Description ## Problem\* Resolves #4658 ## Summary\* I was already timing things for a separate issue so I decided to push this PR. I felt this provided a nice temporary solution. If we deem that the `tracing` crate can still be used for pretty printing the timings of each codegen pass we can switch to that in a follow-up, and for now this provides an easy way to check the timings of each codegen pass. Example output: ``` After Defunctionalization:: 0 ms After Removing Paired rc_inc & rc_decs:: 0 ms After Inlining:: 0 ms After Mem2Reg:: 0 ms After Assert Constant:: 0 ms After Unrolling:: 13 ms After Simplifying:: 0 ms After Flattening:: 9 ms After Removing Bit Shifts:: 0 ms After Mem2Reg:: 19 ms After Constant Folding:: 3 ms After Constraint Folding:: 3 ms After Dead Instruction Elimination:: 0 ms SSA to Brillig: 0 ms SSA to ACIR: 14 ms ``` ## Additional Context ## Documentation\* Check one: - [ ] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [ ] I have tested the changes locally. - [ ] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings. --------- Co-authored-by: jfecher <jake@aztecprotocol.com>
- Loading branch information
Showing
5 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
"castable", | ||
"catmcgee", | ||
"Celo", | ||
"chrono", | ||
"chumsky", | ||
"codegen", | ||
"codegenned", | ||
|