-
Notifications
You must be signed in to change notification settings - Fork 400
feat(ssa): Pass to preprocess functions #7072
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
Merged
Merged
Changes from 33 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
98dc167
Add pass to preprocess 'serialize'
aakoshh 6943765
Simplify a CFG and run DIE as well
aakoshh ed56da8
Merge branch 'master' into af/ssa-preprocess-fns
TomAFrench 850fc11
Add docstrings to inlining
aakoshh e5c49af
See what happens if we go bottom up
aakoshh ea4633c
Merge branch 'af/ssa-preprocess-fns' of github.com:noir-lang/noir int…
aakoshh 13b42f2
Use a cutoff weight to skip processing large functions
aakoshh a9d754f
Merge remote-tracking branch 'origin/master' into af/ssa-preprocess-fns
aakoshh 8f7eb9c
Add CLI option to turn off preprocessing
aakoshh 02cb856
Don't call DIE, to fix the tests
aakoshh 5aa3db7
Fix field name
aakoshh 3c3e215
Remove restore_on_error from unrolling
aakoshh 1b9ffde
Remove prints
aakoshh 1e07b7a
Fix clippy
aakoshh de5176a
Do not inline self-recursive entries
aakoshh deaa311
Rename pass to Preprocess from Pre-process
aakoshh 80872e5
Fix inlining recursion test
aakoshh f337a04
Refactor to use InlineInfo
aakoshh ca7ba9e
Fix remove unreachable functions to remove uncalled Brillig
aakoshh 64841c4
Fix defunctionalization to inherit runtime of caller
aakoshh e9f7bad
Refactor defunctionalization to not create intermediate blocks before…
aakoshh 8cf44ad
Merge branch 'master' into af/ssa-preprocess-fns
aakoshh da1fe6a
Create test to show defunctionalization not handling runtime
aakoshh 7f2cdef
Fix SSA parser to handle function as value
aakoshh bd4f90b
Fix defunctionalization to inherit runtime of caller
aakoshh cfdbcad
Add another test to check 2 runtimes are created
aakoshh 0532794
Merge branch 'master' into fix-defunctionalize-runtime
aakoshh 1b7dc2e
fix: Simplify defunctionalize return (#7101)
aakoshh 8102dd2
.
TomAFrench 1405733
Add test with expected SSA
aakoshh f206178
.
TomAFrench 939cf84
chore: fix tests
TomAFrench fc36f52
Add flag to tell the DIE not to remove STORE yet
aakoshh c00613e
Merge branch '7104-fix-die-mut-ref-param' into af/ssa-preprocess-fns
aakoshh d6c2318
Merge branch 'af/ssa-preprocess-fns' of github.com:noir-lang/noir int…
aakoshh dd34547
Re-enable the DIE
aakoshh 9ec8d62
Merge remote-tracking branch 'origin/master' into af/ssa-preprocess-fns
aakoshh c868745
Call loop invariant motion
aakoshh b6cb13f
Improve comment
aakoshh ce7e412
Rewrite compute_times_called in to use the output of compute_callers
aakoshh a46c3e5
Reword comment
aakoshh 4826682
Update compiler/noirc_evaluator/src/ssa/opt/inlining.rs
aakoshh 44dbfd2
Merge remote-tracking branch 'origin/fix-defunctionalize-runtime' int…
aakoshh 382280d
Merge branch 'af/ssa-preprocess-fns' of github.com:noir-lang/noir int…
aakoshh b7183a8
Merge remote-tracking branch 'origin/master' into af/ssa-preprocess-fns
aakoshh 04c8395
Simplify loop
aakoshh 64e50f8
Add test for order, tweak weights so the results on the test make sense
aakoshh 915bf25
Remove unused after preprocessing
aakoshh ed8b10b
Remove --skip-preprocess-fns
aakoshh 8f0fcc9
Do not skip heavy functions unless it mostly comes from its own weight
aakoshh a506fab
Merge branch 'master' into af/ssa-preprocess-fns
aakoshh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.