diff python/zcc.py @ 239:63bb40758066

added check
author Windel Bouwman
date Mon, 22 Jul 2013 17:57:25 +0200
parents 90637d1bbfad
children f254b87258e6
line wrap: on
line diff
--- a/python/zcc.py	Sat Jul 20 13:18:04 2013 +0200
+++ b/python/zcc.py	Mon Jul 22 17:57:25 2013 +0200
@@ -3,7 +3,7 @@
 import sys, argparse
 import c3, ppci, codegen
 import codegenarm
-from transform import CleanPass
+from transform import CleanPass, SameImmLoadDeletePass
 import outstream
 
 # Parse arguments:
@@ -26,8 +26,13 @@
         sys.exit(1)
 
     # Optimization passes:
+    ircode.check()
     cp = CleanPass()
     cp.run(ircode)
+    ircode.check()
+    sidp = SameImmLoadDeletePass()
+    sidp.run(ircode)
+    ircode.check()
 
     if args.dumpir:
         ircode.dump()