Skip to content
Snippets Groups Projects
Commit 9de2ffd4 authored by Jayke Meijer's avatar Jayke Meijer
Browse files

Fixed optimization percentage.

parent 45898435
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ def optimize(statements, verbose=0): ...@@ -143,7 +143,7 @@ def optimize(statements, verbose=0):
print 'Original statements: %d' % o print 'Original statements: %d' % o
print 'After global optimization: %d' % g print 'After global optimization: %d' % g
print 'After basic blocks optimization: %d' % b print 'After basic blocks optimization: %d' % b
print 'Speedup: %d (%d%%)' \ print 'Optimization: %d (%d%%)' \
% (b - o, int((b - o) / o * 100)) % (b - o, int((b - o) / float(o) * 100))
return opt_blocks return opt_blocks
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment