Author: Maciej Fijalkowski <[email protected]>
Branch: lightweight-finalizers
Changeset: r47910:fd38e80d7844
Date: 2011-10-09 21:18 +0200
http://bitbucket.org/pypy/pypy/changeset/fd38e80d7844/
Log: all casts are ok
diff --git a/pypy/translator/backendopt/finalizer.py
b/pypy/translator/backendopt/finalizer.py
--- a/pypy/translator/backendopt/finalizer.py
+++ b/pypy/translator/backendopt/finalizer.py
@@ -12,13 +12,13 @@
* anything that can allocate
"""
ok_operations = ['ptr_nonzero', 'free', 'same_as',
- 'direct_ptradd', 'force_cast', 'cast_primitive',
- 'cast_pointer']
+ 'direct_ptradd', 'force_cast']
def analyze_simple_operation(self, op, graphinfo):
if op.opname in self.ok_operations:
return self.bottom_result()
- if op.opname.startswith('int_') or op.opname.startswith('float_'):
+ if (op.opname.startswith('int_') or op.opname.startswith('float_')
+ or op.opname.startswith('cast_')):
return self.bottom_result()
if op.opname == 'setfield':
TP = op.args[2].concretetype
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit