forked from iden3/circom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache extracted loop body functions for reuse (#131)
Also: * Refactor storing of global data for extracted loop functions * Refactor context kind into the EnvRecorder * Remove unnecessary derives * Rename some things for clarity
- Loading branch information
1 parent
7279b84
commit bb24637
Showing
8 changed files
with
491 additions
and
165 deletions.
There are no files selected for viewing
File renamed without changes.
247 changes: 247 additions & 0 deletions
247
circom/tests/controlflow/multiuse_func_with_loop_same.circom
Large diffs are not rendered by default.
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
342 changes: 220 additions & 122 deletions
342
circuit_passes/src/passes/loop_unroll/body_extractor.rs
Large diffs are not rendered by default.
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