Skip to content

Commit 8fedbd2

Browse files
committed
Update emitmodule.py
1 parent 5e37f0c commit 8fedbd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypyc/codegen/emitmodule.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ def compile_scc_to_ir(
260260
# Switch to lower abstraction level IR.
261261
lower_ir(fn, compiler_options)
262262
# Perform optimizations.
263+
# once to remove redundant ops
264+
do_box_unbox_elimination(fn, compiler_options)
265+
# once to cleanup
263266
do_box_unbox_elimination(fn, compiler_options)
264267
do_copy_propagation(fn, compiler_options)
265268
do_flag_elimination(fn, compiler_options)

0 commit comments

Comments
 (0)