-
-
Notifications
You must be signed in to change notification settings - Fork 804
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this is a refactoring commit. it introduces `IRContext` and `IRAnalysisCache`. `IRContext` is a global compilation context for a compilation run, it includes global information like the deploy- and runtime-code. meanwhile, `IRFunction` now corresponds directly to "internal" functions passed from the frontend. this commit refactors the `IRAnalysis` and `IRPass` classes by adding `IRAnalysisCache` (kind of a manager for analyses) which determines which analyses are needed for a given pass. additionally, there is a compilation-time performance improvement which is due to optimizations running over smaller sections of code. this commit introduces some performance regressions due to `remove_unused_variables` running in one-shot instead of in a loop now. these performance regressions will be investigated and tuned in a follow-up PR.
- Loading branch information
Showing
31 changed files
with
865 additions
and
837 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.