[pypy-commit] pypy result-in-resops: use new api

fijal noreply at buildbot.pypy.org
Tue Sep 25 11:44:02 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: result-in-resops
Changeset: r57549:b760f1493325
Date: 2012-09-23 21:00 +0200
http://bitbucket.org/pypy/pypy/changeset/b760f1493325/

Log:	use new api

diff --git a/pypy/jit/metainterp/optimizeopt/pure.py b/pypy/jit/metainterp/optimizeopt/pure.py
--- a/pypy/jit/metainterp/optimizeopt/pure.py
+++ b/pypy/jit/metainterp/optimizeopt/pure.py
@@ -41,8 +41,7 @@
             oldop = self.pure_operations.get(op)
             if oldop is not None:
                 assert oldop.getopnum() == op.getopnum()
-                self.optimizer.make_equal_to(op.result, self.getvalue(oldop.result),
-                                   True)
+                self.replace(op, oldop)
                 return
             else:
                 self.pure_operations.add(op)


More information about the pypy-commit mailing list