Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion vyper/codegen/ir_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Any, List, Optional, Union

import vyper.ast as vy_ast
from vyper.compiler.settings import VYPER_COLOR_OUTPUT
from vyper.compiler.settings import VYPER_COLOR_OUTPUT, get_global_settings
from vyper.evm.address_space import AddrSpace
from vyper.evm.opcodes import get_ir_opcodes
from vyper.exceptions import CodegenPanic, CompilerPanic
Expand Down Expand Up @@ -426,6 +426,10 @@ def is_pointer(self) -> bool:

@property # probably could be cached_property but be paranoid
def _optimized(self):
if get_global_settings().experimental_codegen:
# in venom pipeline, we don't need to inline constants.
return self

# TODO figure out how to fix this circular import
from vyper.ir.optimizer import optimize

Expand Down
Loading