-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIT: introduce some SSA accounting and checking (#77055)
Record some information about each SSA def and try and keep it conservatively correct through the first few optimization phases. We note: * total number of uses * whether all uses are in the same block as the def * whether there are any phi uses Subsequent phases that introduce new uses must now call `optRecordSsaUses` on the new trees they create to update these accounts. This information is cross-checked versus the IR in post phase checking. Because we don't have a well-defined mechanism to track when nodes are deleted the recorded counts may end up being overestimates in subsequent phases. This is ok, but underestimates are flagged as errors.
- Loading branch information
1 parent
5b290d3
commit 5ec2e87
Showing
11 changed files
with
822 additions
and
87 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
Oops, something went wrong.