[pypy-svn] r74390 - pypy/branch/chunked-list/pypy/translator

fijal at codespeak.net fijal at codespeak.net
Wed May 5 23:10:21 CEST 2010


Author: fijal
Date: Wed May  5 23:10:20 2010
New Revision: 74390

Modified:
   pypy/branch/chunked-list/pypy/translator/simplify.py
Log:
Revert last couple of changes, will hack differently


Modified: pypy/branch/chunked-list/pypy/translator/simplify.py
==============================================================================
--- pypy/branch/chunked-list/pypy/translator/simplify.py	(original)
+++ pypy/branch/chunked-list/pypy/translator/simplify.py	Wed May  5 23:10:20 2010
@@ -227,10 +227,11 @@
         if block.operations and block.exitswitch == c_last_exception:
             last_op = block.operations[-1]
             if last_op.opname == 'getitem':
-                postfx = ['idx']
+                postfx = []
                 for exit in block.exits:
-                    #if exit.exitcase is IndexError:
-                    if exit.exitcase is KeyError:
+                    if exit.exitcase is IndexError:
+                        postfx.append('idx')
+                    elif exit.exitcase is KeyError:
                         postfx.append('key')
                 if postfx:
                     last_op.opname = last_op.opname + '_' + '_'.join(postfx)



More information about the Pypy-commit mailing list