Przeglądaj źródła

Merge branch 'master' of github.com:taddeus/peephole

Taddeus Kroes 14 lat temu
rodzic
commit
ab24f850a4
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/optimize/advanced.py

+ 3 - 1
src/optimize/advanced.py

@@ -283,7 +283,9 @@ def algebraic_transformations(block):
 
 
                 shift_amount = log(s[1], 2)
                 shift_amount = log(s[1], 2)
                 if shift_amount.is_integer():
                 if shift_amount.is_integer():
-                    new_command = S('command', 'sll', next[0], s[0], int(shift_amount))
+                    new_command = S('command', 'sll', \
+                                    next[0], s[0], \
+                                    int(shift_amount))
                     block.replace(2, [new_command])
                     block.replace(2, [new_command])
                     changed = True
                     changed = True