diff --git a/vyper/venom/venom_to_assembly.py b/vyper/venom/venom_to_assembly.py index a17a4b403c..7e6df8539d 100644 --- a/vyper/venom/venom_to_assembly.py +++ b/vyper/venom/venom_to_assembly.py @@ -434,13 +434,6 @@ def _generate_evm_for_instruction( # the same variable, however, before a jump that is not possible self._stack_reorder(assembly, stack, list(target_stack)) - if False and inst.is_commutative: - cost_no_swap = self._stack_reorder([], stack, operands, dry_run=True) - operands[-1], operands[-2] = operands[-2], operands[-1] - cost_with_swap = self._stack_reorder([], stack, operands, dry_run=True) - if cost_with_swap > cost_no_swap: - operands[-1], operands[-2] = operands[-2], operands[-1] - cost = self._stack_reorder([], stack, operands, dry_run=True) if DEBUG_SHOW_COST and cost: print("ENTER", inst, file=sys.stderr)