-
-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat[venom]: stack2mem pass implementation #4245
base: master
Are you sure you want to change the base?
Conversation
@@ -1,7 +1,9 @@ | |||
from typing import Iterator, Optional | |||
|
|||
from vyper.codegen.ir_node import IRnode | |||
from vyper.venom.basicblock import IRBasicBlock, IRLabel, IRVariable | |||
from vyper.utils import OrderedSet |
Check notice
Code scanning / CodeQL
Unused import Note
@@ -1,7 +1,9 @@ | |||
from typing import Iterator, Optional | |||
|
|||
from vyper.codegen.ir_node import IRnode | |||
from vyper.venom.basicblock import IRBasicBlock, IRLabel, IRVariable | |||
from vyper.utils import OrderedSet | |||
from vyper.venom.basicblock import CFG_ALTERING_INSTRUCTIONS, IRBasicBlock, IRLabel, IRVariable |
Check notice
Code scanning / CodeQL
Unused import Note
@@ -1,7 +1,9 @@ | |||
from typing import Iterator, Optional | |||
|
|||
from vyper.codegen.ir_node import IRnode | |||
from vyper.venom.basicblock import IRBasicBlock, IRLabel, IRVariable | |||
from vyper.utils import OrderedSet | |||
from vyper.venom.basicblock import CFG_ALTERING_INSTRUCTIONS, IRBasicBlock, IRLabel, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
vyper.venom.basicblock
vyper.venom.function
definition
import
@@ -1,7 +1,9 @@ | |||
from typing import Iterator, Optional | |||
|
|||
from vyper.codegen.ir_node import IRnode | |||
from vyper.venom.basicblock import IRBasicBlock, IRLabel, IRVariable | |||
from vyper.utils import OrderedSet | |||
from vyper.venom.basicblock import CFG_ALTERING_INSTRUCTIONS, IRBasicBlock, IRLabel, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
vyper.venom.basicblock
vyper.venom.function
definition
import
@@ -1,7 +1,9 @@ | |||
from typing import Iterator, Optional | |||
|
|||
from vyper.codegen.ir_node import IRnode | |||
from vyper.venom.basicblock import IRBasicBlock, IRLabel, IRVariable | |||
from vyper.utils import OrderedSet | |||
from vyper.venom.basicblock import CFG_ALTERING_INSTRUCTIONS, IRBasicBlock, IRLabel, IRVariable |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
What I did
Implemented the stack2mem pass. This pass demotes stack variables to memory accesses when they are not reachable on the stack.
Fixes [#4222]
How I did it
How to verify it
Commit message
Description for the changelog
Cute Animal Picture