[pypy-commit] pypy optresult: there is no point in trying to preserve the Const here

fijal noreply at buildbot.pypy.org
Tue Jun 9 11:30:09 CEST 2015


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult
Changeset: r77984:1d6811565946
Date: 2015-06-09 11:30 +0200
http://bitbucket.org/pypy/pypy/changeset/1d6811565946/

Log:	there is no point in trying to preserve the Const here

diff --git a/rpython/jit/metainterp/optimizeopt/optimizer.py b/rpython/jit/metainterp/optimizeopt/optimizer.py
--- a/rpython/jit/metainterp/optimizeopt/optimizer.py
+++ b/rpython/jit/metainterp/optimizeopt/optimizer.py
@@ -349,7 +349,8 @@
         if opinfo is not None:
             assert isinstance(opinfo, info.AbstractInfo)
             op.set_forwarded(newop)
-            newop.set_forwarded(opinfo)
+            if not isinstance(newop, Const):
+                newop.set_forwarded(opinfo)
         else:
             op.set_forwarded(newop)
 


More information about the pypy-commit mailing list