[pypy-commit] pypy lightweight-finalizers: all casts are ok

fijal noreply at buildbot.pypy.org
Sun Oct 9 21:28:07 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
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


More information about the pypy-commit mailing list