[pypy-svn] r26868 - pypy/dist/pypy/translator/backendopt

arigo at codespeak.net arigo at codespeak.net
Sat May 6 14:35:22 CEST 2006


Author: arigo
Date: Sat May  6 14:35:21 2006
New Revision: 26868

Modified:
   pypy/dist/pypy/translator/backendopt/propagate.py
Log:
Renamed veeery confusing function.


Modified: pypy/dist/pypy/translator/backendopt/propagate.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/propagate.py	(original)
+++ pypy/dist/pypy/translator/backendopt/propagate.py	Sat May  6 14:35:21 2006
@@ -133,7 +133,7 @@
             raise TooManyOperations
         return super(CountingLLFrame, self).eval_operation(operation)
 
-def op_can_be_folded(op):
+def op_dont_fold(op):
     try:
         return not lloperation.LL_OPERATIONS[op.opname].canfold
     except KeyError:
@@ -169,7 +169,7 @@
                 if (called_graph is not None and
                     simplify.has_no_side_effects(
                         translator, called_graph,
-                        is_operation_false=op_can_be_folded) and
+                        is_operation_false=op_dont_fold) and
                     (block.exitswitch != c_last_exception or 
                      i != len(block.operations) - 1)):
                     args = [arg.value for arg in op.args[1:]]



More information about the Pypy-commit mailing list