[pypy-commit] pypy default: If "see_function" is False, don't call contains_unsupported_variable_type().

arigo noreply at buildbot.pypy.org
Wed Aug 1 17:28:57 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r56526:c36d81a5287e
Date: 2012-08-01 17:28 +0200
http://bitbucket.org/pypy/pypy/changeset/c36d81a5287e/

Log:	If "see_function" is False, don't call
	contains_unsupported_variable_type(). The result is going to be
	False anyway. Avoids getting warnings if we mark a function
	@jit.dont_look_inside because it manipulates unsupported types.

diff --git a/pypy/jit/codewriter/policy.py b/pypy/jit/codewriter/policy.py
--- a/pypy/jit/codewriter/policy.py
+++ b/pypy/jit/codewriter/policy.py
@@ -63,11 +63,10 @@
             contains_loop = contains_loop and not getattr(
                     func, '_jit_unroll_safe_', False)
 
-        unsupported = contains_unsupported_variable_type(graph,
+        res = see_function and not contains_unsupported_variable_type(graph,
                             self.supports_floats,
                             self.supports_longlong,
                             self.supports_singlefloats)
-        res = see_function and not unsupported
         if res and contains_loop:
             self.unsafe_loopy_graphs.add(graph)
         res = res and not contains_loop


More information about the pypy-commit mailing list