Skip to content

Commit

Permalink
fix for the test that worked in bin opt but is expected fail in master
Browse files Browse the repository at this point in the history
  • Loading branch information
HodanPlodky committed Jan 2, 2025
1 parent e5533d8 commit 8f1a48e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/functional/codegen/features/test_clampers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from eth_utils import keccak

from tests.utils import ZERO_ADDRESS, decimal_to_int
from vyper.exceptions import StackTooDeep
from vyper.utils import int_bounds


Expand Down Expand Up @@ -502,7 +501,6 @@ def foo(b: DynArray[int128, 10]) -> DynArray[int128, 10]:


@pytest.mark.parametrize("value", [0, 1, -1, 2**127 - 1, -(2**127)])
@pytest.mark.venom_xfail(raises=StackTooDeep, reason="stack scheduler regression")
def test_multidimension_dynarray_clamper_passing(get_contract, value):
code = """
@external
Expand Down
1 change: 1 addition & 0 deletions vyper/venom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def _run_passes(fn: IRFunction, optimize: OptimizationLevel) -> None:

LowerDloadPass(ac, fn).run_pass()
AlgebraicOptimizationPass(ac, fn).run_pass()
StoreElimination(ac, fn).run_pass()
SimplifyCFGPass(ac, fn).run_pass()
# NOTE: MakeSSA is after algebraic optimization it currently produces
# smaller code by adding some redundant phi nodes. This is not a
Expand Down
1 change: 1 addition & 0 deletions vyper/venom/passes/sccp/sccp.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def finalize(ret):
fn = ARITHMETIC_OPS[opcode]
res = fn(ops)
if res is not None:
assert isinstance(res, IRLiteral)
return finalize(res)
else:
return finalize(LatticeEnum.BOTTOM)
Expand Down

0 comments on commit 8f1a48e

Please sign in to comment.