-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a linearization pass in inference to make the AST easier to process
In particular, the features we'd like to take advantage of is mostly a limited variance of uses. This means we can easily 1. Keep track of the expression a value is used. 2. Replace the use. 3. Update the use info without extensive rescanning. This also limit the kind of sideeffect an expression arguments can have. The pass currently may change when `UndefVarError` is raised.
- Loading branch information
Showing
1 changed file
with
115 additions
and
0 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