1.1 --- a/micropython/opt.py Tue Jul 14 00:37:04 2009 +0200
1.2 +++ b/micropython/opt.py Sun Jul 19 22:17:23 2009 +0200
1.3 @@ -184,21 +184,7 @@
1.4 to have the simple input registers as operands.
1.5 """
1.6
1.7 - return isinstance(instruction, (
1.8 - StoreTemp, StoreFrame, StoreResult, StoreException, # as the value being stored
1.9 - LoadAddressContext, LoadAddressContextCond, # as the object being referenced
1.10 - LoadAttr, LoadAttrIndex, # LoadAttrIndexContext, # as the object being referenced
1.11 - LoadAttrIndexContextCond, # as the object being referenced
1.12 - StoreAttr, StoreAttrIndex, StoreCallable, # as the object being referenced
1.13 - StoreFrameIndex, # as the object being referenced
1.14 - StoreAddressContext, # as the context
1.15 - LoadCallable,
1.16 - TestIdentity, TestIdentityAddress, CheckSelf, # as one of the operands
1.17 - CheckException, CheckFrame, FillDefaults,
1.18 - MakeInstance,
1.19 - CheckContext, CheckClass,
1.20 - LoadContext # as the object providing the result
1.21 - ))
1.22 + return isinstance(instruction, simple_input_user_instructions)
1.23
1.24 def is_resultant_no_operation(self, instruction):
1.25