-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic when creating unneeded Phi node (#1527)
This fixes an issue where a mutable variable A used only in one scope and not across any others is set to a different mutable variable B that spans multiple scopes, including scopes that are not dominated by variable B. Variables like B do not need phi nodes as they are assumed to be unused in later blocks, and any actual usage in later blocks will be caught by the SSA check pass by using the dominator tree.
- Loading branch information
Showing
2 changed files
with
99 additions
and
7 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