[pypy-commit] pypy optresult: another oops

fijal noreply at buildbot.pypy.org
Fri Jun 5 14:27:26 CEST 2015


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult
Changeset: r77909:106ab253738e
Date: 2015-06-05 14:27 +0200
http://bitbucket.org/pypy/pypy/changeset/106ab253738e/

Log:	another oops

diff --git a/rpython/jit/backend/llsupport/rewrite.py b/rpython/jit/backend/llsupport/rewrite.py
--- a/rpython/jit/backend/llsupport/rewrite.py
+++ b/rpython/jit/backend/llsupport/rewrite.py
@@ -87,8 +87,10 @@
 
     def emit_op(self, op):
         if op.is_guard():
-            op = op.copy_and_change(op.getopnum())
             newop = op.get_replacement_for_rewrite()
+            if newop is op:
+                newop = op.copy_and_change(op.getopnum())
+                op.set_forwarded(newop)
             _newfailargs = []
             for arg in op.getfailargs():
                 if arg is not None:


More information about the pypy-commit mailing list