Mercurial > lcfOS
diff python/ppci/codegen/codegen.py @ 355:c2ddc8a36f5e
Enabled optimization
author | Windel Bouwman |
---|---|
date | Fri, 14 Mar 2014 10:30:13 +0100 |
parents | 442fb043d149 |
children | c49459768aaa |
line wrap: on
line diff
--- a/python/ppci/codegen/codegen.py Thu Mar 13 18:59:06 2014 +0100 +++ b/python/ppci/codegen/codegen.py Fri Mar 14 10:30:13 2014 +0100 @@ -1,5 +1,6 @@ from .. import ir from ..irutils import Verifier +from ..transform import RemoveAddZero from ..target import Target from .. import CompilerError from .canon import make as canonicalize @@ -27,6 +28,7 @@ # Canonicalize the intermediate language: canonicalize(irfunc, frame) + RemoveAddZero().run(irfunc) self.logger.debug('after canonicalize', extra={'irfunc': irfunc}) self.verifier.verify_function(irfunc) self.ins_sel.munchFunction(irfunc, frame)