Author: Laurence Tratt <[email protected]>
Branch: recursion_and_inlining
Changeset: r74866:8b9a6b6f9c9d
Date: 2014-12-09 15:44 +0000
http://bitbucket.org/pypy/pypy/changeset/8b9a6b6f9c9d/

Log:    Add output to JIT logging informing people of when recursive
        functions have stopped being inlined.

diff --git a/rpython/jit/metainterp/pyjitpl.py 
b/rpython/jit/metainterp/pyjitpl.py
--- a/rpython/jit/metainterp/pyjitpl.py
+++ b/rpython/jit/metainterp/pyjitpl.py
@@ -978,6 +978,9 @@
                     # inlining it further and to make sure that, if it
                     # hasn't happened already, the function is traced
                     # separately as soon as possible.
+                    if have_debug_prints():
+                        loc = 
targetjitdriver_sd.warmstate.get_location_str(greenboxes)
+                        debug_print("recursive function (not inlined):", loc)
                     warmrunnerstate.dont_trace_here(greenboxes)
                 else:
                     return self.metainterp.perform_call(portal_code, allboxes,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to