Mercurial > lcfOS
diff python/zcc.py @ 252:c4370696ccc7
added optimize function
author | Windel Bouwman |
---|---|
date | Tue, 30 Jul 2013 17:57:46 +0200 |
parents | e41e4109addd |
children | 74c6a20302d5 |
line wrap: on
line diff
--- a/python/zcc.py Mon Jul 29 20:23:13 2013 +0200 +++ b/python/zcc.py Tue Jul 30 17:57:46 2013 +0200 @@ -3,7 +3,7 @@ import sys, argparse import c3, ppci, codegen import codegenarm -from transform import CleanPass, SameImmLoadDeletePass +import transform import outstream import hexfile @@ -23,13 +23,7 @@ return # Optimization passes: - ircode.check() - cp = CleanPass() - cp.run(ircode) - ircode.check() - sidp = SameImmLoadDeletePass() - sidp.run(ircode) - ircode.check() + transform.optimize(ircode) if dumpir: ircode.dump()