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

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

parents 2bcdcaff 28ab0e8f
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,10 @@ if __name__ == '__main__':
# Parse File
statements = parse_file(argv[1])
st_original = len(statements)
# Optimize on a global level
statements = optimize_global(statements)
st_aft_global = len(statements)
# Create basic blocks
......@@ -28,11 +28,11 @@ if __name__ == '__main__':
# Rewrite to assembly
out = write_statements(statements)
print "Optimization:"
print "Original statements:" + str(st_original)
print "After global optimization:" + str(st_aft_global)
print "After basic blocks optimization:" + str(len(statements))
print "Original statements:", st_original
print "After global optimization:", st_aft_global
print "After basic blocks optimization:", len(statements)
if len(argv) > 2:
# Save output assembly
......
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