Skip to content

Commit

Permalink
cleanup - rename extract literals to store_expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 25, 2024
1 parent 7313acf commit fe215d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vyper/venom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
from vyper.venom.passes.algebraic_optimization import AlgebraicOptimizationPass
from vyper.venom.passes.branch_optimization import BranchOptimizationPass
from vyper.venom.passes.dft import DFTPass
from vyper.venom.passes.extract_literals import ExtractLiteralsPass
from vyper.venom.passes.make_ssa import MakeSSA
from vyper.venom.passes.mem2var import Mem2Var
from vyper.venom.passes.remove_unused_variables import RemoveUnusedVariablesPass
from vyper.venom.passes.sccp import SCCP
from vyper.venom.passes.simplify_cfg import SimplifyCFGPass
from vyper.venom.passes.store_elimination import StoreElimination
from vyper.venom.passes.store_expansion import StoreExpansionPass
from vyper.venom.venom_to_assembly import VenomCompiler

DEFAULT_OPT_LEVEL = OptimizationLevel.default()
Expand Down Expand Up @@ -55,7 +55,7 @@ def _run_passes(fn: IRFunction, optimize: OptimizationLevel) -> None:
AlgebraicOptimizationPass(ac, fn).run_pass()
BranchOptimizationPass(ac, fn).run_pass()

ExtractLiteralsPass(ac, fn).run_pass()
StoreExpansionPass(ac, fn).run_pass()
RemoveUnusedVariablesPass(ac, fn).run_pass()
DFTPass(ac, fn).run_pass()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
from vyper.venom.passes.base_pass import IRPass


class ExtractLiteralsPass(IRPass):
class StoreExpansionPass(IRPass):
"""
This pass extracts literals so that they can be reordered by the DFT pass
This pass extracts literals and variables so that they can be
reordered by the DFT pass
"""

def run_pass(self):
Expand Down

0 comments on commit fe215d9

Please sign in to comment.