[pypy-commit] pypy default: operations are changed in place
cfbolz
noreply at buildbot.pypy.org
Tue Sep 23 11:46:32 CEST 2014
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r73662:93b1ad2ab1fd
Date: 2014-09-06 20:50 +0200
http://bitbucket.org/pypy/pypy/changeset/93b1ad2ab1fd/
Log: operations are changed in place
diff --git a/rpython/translator/backendopt/storesink.py b/rpython/translator/backendopt/storesink.py
--- a/rpython/translator/backendopt/storesink.py
+++ b/rpython/translator/backendopt/storesink.py
@@ -33,10 +33,8 @@
cache = {}
if block.operations:
- newops, changed_block = _storesink_block(block, cache, inputlink)
+ changed_block = _storesink_block(block, cache, inputlink)
added_some_same_as = changed_block or added_some_same_as
- if changed_block:
- block.operations = newops
for link in block.exits:
if len(entrymap[link.target]) == 1:
new_cache = _translate_cache(cache, link)
@@ -77,7 +75,6 @@
del cache[k]
added_some_same_as = False
- newops = []
for op in block.operations:
if op.opname == 'getfield':
tup = (op.args[0], op.args[1].value)
@@ -97,5 +94,4 @@
cache[target, field] = op.args[2]
elif has_side_effects(op):
cache.clear()
- newops.append(op)
- return newops, added_some_same_as
+ return added_some_same_as
More information about the pypy-commit
mailing list