[pypy-svn] r66974 - pypy/branch/pyjitpl5/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Wed Aug 19 15:32:02 CEST 2009


Author: fijal
Date: Wed Aug 19 15:32:02 2009
New Revision: 66974

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py
Log:
(pedronis, fijal) Remove some carefulness code, since this case should not
occur any more.


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py	Wed Aug 19 15:32:02 2009
@@ -250,14 +250,11 @@
         if (operations[i + 1].opnum != rop.GUARD_TRUE and
             operations[i + 1].opnum != rop.GUARD_FALSE):
             return False
-        if operations[i + 1].args[0] is not op.result:
-            return False
-        if self.longevity[op.result][1] > i + 1:
-            return False
-        if op.result in operations[i + 1].inputargs:
-            # XXX implement optimization that replace var with a const
-            #     not right now
-            return False
+        if (operations[i + 1].args[0] is not op.result or
+            self.longevity[op.result][1] > i + 1 or
+            op.result in operations[i + 1].inputargs):
+            print "boolean flag not optimized away"
+            assert False
         return True
 
     def walk_operations(self, tree):



More information about the Pypy-commit mailing list