1.1 --- a/micropython/opt.py Mon Apr 20 01:50:00 2009 +0200
1.2 +++ b/micropython/opt.py Thu Apr 23 00:52:33 2009 +0200
1.3 @@ -155,7 +155,10 @@
1.4
1.5 "Return whether 'instruction' provides a constant target."
1.6
1.7 - return isinstance(instruction, (StoreName, StoreAddress)) and \
1.8 + # NOTE: Removed StoreName, since this would then demand population of
1.9 + # NOTE: locals/frames.
1.10 +
1.11 + return isinstance(instruction, StoreAddress) and \
1.12 instruction.attr.assignments == 1
1.13
1.14 def is_simple_input(self, instruction):