File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,13 +190,6 @@ def optimize(initial_memory):
190190
191191 BLOCKS = basic_blocks = basicblock .get_basic_blocks (bb ) # 1st partition the Basic Blocks
192192
193- for x in basic_blocks :
194- x .clean_up_comes_from ()
195- x .clean_up_goes_to ()
196-
197- for b in basic_blocks :
198- b .update_goes_and_comes ()
199-
200193 for b in basic_blocks :
201194 __DEBUG__ ('--- BASIC BLOCK: {} ---' .format (b .id ), 1 )
202195 __DEBUG__ ('Code:\n ' + '\n ' .join (' {}' .format (x ) for x in b .code ), 1 )
Original file line number Diff line number Diff line change @@ -693,4 +693,11 @@ def get_basic_blocks(block):
693693 result .insert (j , block_ )
694694 result .insert (j + 1 , new_block_ )
695695
696+ for b in result :
697+ b .clean_up_comes_from ()
698+ b .clean_up_goes_to ()
699+
700+ for b in result :
701+ b .update_goes_and_comes ()
702+
696703 return result
You can’t perform that action at this time.
0 commit comments