Commit ab24f850 authored by Taddeus Kroes's avatar Taddeus Kroes

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

parents 06607dd1 0658f9c5
...@@ -283,7 +283,9 @@ def algebraic_transformations(block): ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment