Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back off less on conditional let/const declarations in LiveVariablesA…
…nalysis Given a conditionally executed var statement (e.g. for (var x of someArr) {}), it is possible that 'x' was previously assigned to, so 'x' is possibly live prior to the for loop. Normalize does not guarantee that a 'var' is never assigned to before the first 'var' statement. However, given a conditional let/const declaration, it's safe to say that the variable was 'dead' prior to its declaration because it cannot be assigned referenced in the temporal dead zone. This improves optimizations during CoalesceVariableNames. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228183336
- Loading branch information
1 parent
157b3b7
commit 078c3c8
Showing
4 changed files
with
93 additions
and
43 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