diff python/zcc.py @ 317:e30a77ae359b

Added glue blocks
author Windel Bouwman
date Sun, 22 Dec 2013 15:50:59 +0100
parents 56e6ff84f646
children e84047f29c78
line wrap: on
line diff
--- a/python/zcc.py	Sat Dec 21 13:13:26 2013 +0100
+++ b/python/zcc.py	Sun Dec 22 15:50:59 2013 +0100
@@ -13,7 +13,7 @@
 import target
 from ppci import irutils
 import io
-from ppci.transform import CleanPass
+from ppci.transform import CleanPass, RemoveAddZero
 
 
 logformat='%(asctime)s|%(levelname)s|%(name)s|%(message)s'
@@ -166,6 +166,10 @@
         # Optimization passes:
         CleanPass().run(ircode)
         Verifier().verify(ircode)
+        RemoveAddZero().run(ircode)
+        Verifier().verify(ircode)
+        CleanPass().run(ircode)
+        Verifier().verify(ircode)
 
         # Code generation:
         d = {'ircode':ircode}