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.
feat[venom]: make cfg scheduler "stack aware" (vyperlang#4356)
this is a step towards making the cfg traversal order more "stack aware". previously we would blindly try to remove `iszero` instructions before a `jnz`. now, the heuristic is based on which basic block has a smaller sized dependency on this basic block. only if the two cfg_out blocks have the same sized dependency, then we try to remove the iszero. this creates a slight improvement to codesize due to fewer stack operations at `jnz` boundaries.
- Loading branch information
1 parent
0abcf45
commit fee16e6
Showing
2 changed files
with
25 additions
and
11 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