diff options
author | Armin Rigo <arigo@tunes.org> | 2013-06-26 17:02:51 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2013-06-26 17:02:51 +0200 |
commit | 1a06fb3146cff8bf03e2dac1bbf2f839565c86e6 (patch) | |
tree | 18ff4b8008e1d90270508f775b1fdd3eb8eea704 /rpython/jit/metainterp/optimizeopt/simplify.py | |
parent | what's new item (diff) | |
download | pypy-1a06fb3146cff8bf03e2dac1bbf2f839565c86e6.tar.gz pypy-1a06fb3146cff8bf03e2dac1bbf2f839565c86e6.tar.bz2 pypy-1a06fb3146cff8bf03e2dac1bbf2f839565c86e6.zip |
Hopefully no-op change, clarify a bit the role of Optimizer.pendingfields
Diffstat (limited to 'rpython/jit/metainterp/optimizeopt/simplify.py')
-rw-r--r-- | rpython/jit/metainterp/optimizeopt/simplify.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rpython/jit/metainterp/optimizeopt/simplify.py b/rpython/jit/metainterp/optimizeopt/simplify.py index ce4c2598d7..f67a12ea86 100644 --- a/rpython/jit/metainterp/optimizeopt/simplify.py +++ b/rpython/jit/metainterp/optimizeopt/simplify.py @@ -7,7 +7,13 @@ class OptSimplify(Optimization): def __init__(self, unroll): self.last_label_descr = None self.unroll = unroll - + + def emit_operation(self, op): + if op.is_guard(): + if self.optimizer.pendingfields is None: + self.optimizer.pendingfields = [] + Optimization.emit_operation(self, op) + def optimize_CALL_PURE(self, op): args = op.getarglist() self.emit_operation(ResOperation(rop.CALL, args, op.result, |