[pypy-commit] pypy unroll-if-alt: explain the purpose of specialize:call_location
gutworth
noreply at buildbot.pypy.org
Mon Sep 19 15:00:21 CEST 2011
Author: Benjamin Peterson <benjamin at python.org>
Branch: unroll-if-alt
Changeset: r47348:9298098c4c25
Date: 2011-09-19 09:00 -0400
http://bitbucket.org/pypy/pypy/changeset/9298098c4c25/
Log: explain the purpose of specialize:call_location
diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py
--- a/pypy/rlib/jit.py
+++ b/pypy/rlib/jit.py
@@ -118,6 +118,9 @@
def inner(func):
func_unroll = unroll_safe(func_with_new_name(func, func.__name__ + "_unroll"))
func = dont_look_inside(func)
+ # When we return the new function, it might be specialized in some
+ # way. We "propogate" this specialization by using
+ # specialize:call_location on relevant functions.
for thing in [func, func_unroll, predicate]:
thing._annspecialcase_ = "specialize:call_location"
More information about the pypy-commit
mailing list