[pypy-svn] r77595 - pypy/trunk/pypy/jit/metainterp/optimizeopt

fijal at codespeak.net fijal at codespeak.net
Tue Oct 5 11:47:37 CEST 2010


Author: fijal
Date: Tue Oct  5 11:47:36 2010
New Revision: 77595

Modified:
   pypy/trunk/pypy/jit/metainterp/optimizeopt/rewrite.py
Log:
Write down a comment that this code is dead


Modified: pypy/trunk/pypy/jit/metainterp/optimizeopt/rewrite.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/optimizeopt/rewrite.py	(original)
+++ pypy/trunk/pypy/jit/metainterp/optimizeopt/rewrite.py	Tue Oct  5 11:47:36 2010
@@ -245,6 +245,9 @@
     def optimize_CALL_LOOPINVARIANT(self, op):
         funcvalue = self.getvalue(op.getarg(0))
         if not funcvalue.is_constant():
+            # XXX this code path is never executed in tests nor in production.
+            # in fact, it can't even happen since residual_call in codewriter
+            # expects a compile-time constant
             self.emit_operation(op)
             return
         key = make_hashable_int(op.getarg(0).getint())



More information about the Pypy-commit mailing list