Author: Remi Meier <remi.me...@inf.ethz.ch>
Branch: stmgc-c7
Changeset: r72927:28c253683fc2
Date: 2014-08-20 11:25 +0200
http://bitbucket.org/pypy/pypy/changeset/28c253683fc2/

Log:    another small simplification

diff --git a/rpython/translator/stm/readbarrier.py 
b/rpython/translator/stm/readbarrier.py
--- a/rpython/translator/stm/readbarrier.py
+++ b/rpython/translator/stm/readbarrier.py
@@ -167,8 +167,7 @@
                     cat = None
                 output_categories.append(cat)
             newoperations = []
-            newargs = link.args
-            linkoperations.append((newargs, newoperations, output_categories))
+            linkoperations.append((newoperations, output_categories))
         #
         # Record how we'd like to patch the block, but don't do any
         # patching yet
@@ -179,7 +178,7 @@
         (_, _, linkoperations) = self.patch
         assert len(linkoperations) == len(self.block.exits)
         targetbts = []
-        for link, (_, _, output_categories) in zip(self.block.exits,
+        for link, (_, output_categories) in zip(self.block.exits,
                                                    linkoperations):
             targetblock = link.target
             if targetblock not in block_transformers:
@@ -215,9 +214,8 @@
         if switchv is not None:
             self.block.exitswitch = switchv
         assert len(linkoperations) == len(self.block.exits)
-        for link, (newargs, newoperations, _) in zip(self.block.exits,
+        for link, (newoperations, _) in zip(self.block.exits,
                                                      linkoperations):
-            link.args[:] = newargs
             if newoperations:
                 # must put them in a fresh block along the link
                 annotator = self.stmtransformer.translator.annotator
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to