forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor[venom]: refactor sccp pass to use dfg (vyperlang#4329)
use `DFGAnalysis` in `SCCP` instead of duplicating the logic to compute uses in the `SCCP` itself. also use `OrderedSet` for var uses, this ensures we don't add the same instruction multiple times (as in `add %2 %2`) to a var's use set, and also enables a cheaper `remove_use()` implementation.
- Loading branch information
1 parent
b3ea663
commit 658f0c4
Showing
2 changed files
with
17 additions
and
29 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