aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-06-26 17:02:51 +0200
committerArmin Rigo <arigo@tunes.org>2013-06-26 17:02:51 +0200
commit1a06fb3146cff8bf03e2dac1bbf2f839565c86e6 (patch)
tree18ff4b8008e1d90270508f775b1fdd3eb8eea704 /rpython/jit/metainterp/optimizeopt/simplify.py
parentwhat's new item (diff)
downloadpypy-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.py8
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,