Commit 715b340a authored by Stefan Behnel's avatar Stefan Behnel

exclude types from method call optimisation again (thinko: we're dealing with...

exclude types from method call optimisation again (thinko: we're dealing with the actual types here, not with their attributes)
parent 159f48a9
...@@ -3770,7 +3770,9 @@ class FinalOptimizePhase(Visitor.CythonTransform, Visitor.NodeRefCleanupMixin): ...@@ -3770,7 +3770,9 @@ class FinalOptimizePhase(Visitor.CythonTransform, Visitor.NodeRefCleanupMixin):
node.arg_tuple.mult_factor or (node.arg_tuple.is_literal and node.arg_tuple.args)): node.arg_tuple.mult_factor or (node.arg_tuple.is_literal and node.arg_tuple.args)):
# simple call, now exclude calls to objects that are definitely not methods # simple call, now exclude calls to objects that are definitely not methods
may_be_a_method = True may_be_a_method = True
if function.is_name: if function.type is Builtin.type_type:
may_be_a_method = False
elif function.is_name:
if function.entry.is_builtin: if function.entry.is_builtin:
may_be_a_method = False may_be_a_method = False
elif function.cf_state: elif function.cf_state:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment