1.1 --- a/micropython/opt.py Sun Aug 21 23:59:52 2011 +0200
1.2 +++ b/micropython/opt.py Mon Aug 22 00:53:34 2011 +0200
1.3 @@ -257,6 +257,11 @@
1.4
1.5 return self.get_active_value() and self.is_simple_input(self.get_active_value())
1.6
1.7 + # Indicate whether the active instruction can be used in place of access
1.8 + # to a temporary variable retaining the result of the last instruction.
1.9 +
1.10 + have_temp_compatible_access = have_simple_input
1.11 +
1.12 def have_self_input(self, unit):
1.13
1.14 """
1.15 @@ -270,11 +275,6 @@
1.16 expr = self.get_active_value()
1.17 return expr and isinstance(expr, LoadName) and expr.attr.name == "self"
1.18
1.19 - # Indicate whether the active instruction can be used in place of access
1.20 - # to a temporary variable retaining the result of the last instruction.
1.21 -
1.22 - have_temp_compatible_access = have_simple_input
1.23 -
1.24 def have_correct_self_for_target(self, context, unit):
1.25
1.26 "Return whether the 'context' is compatible with the given 'unit'."