[pypy-svn] r52229 - pypy/branch/jit-refactoring/pypy/jit/rainbow
arigo at codespeak.net
arigo at codespeak.net
Thu Mar 6 19:28:56 CET 2008
Author: arigo
Date: Thu Mar 6 19:28:54 2008
New Revision: 52229
Modified:
pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
Log:
We need to enable this, as cfbolz pointed out
Modified: pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py (original)
+++ pypy/branch/jit-refactoring/pypy/jit/rainbow/codewriter.py Thu Mar 6 19:28:54 2008
@@ -1317,9 +1317,10 @@
from pypy.translator.backendopt.constfold import constant_fold_graph
self.graph = graph
remove_same_as(graph)
- # to get rid of the we_are_jitted constant
- # XXX not sure this is right, leaving commented out for now
- #constant_fold_graph(graph)
+ # to get rid of the usages of the we_are_jitted constant
+ # (turned to '1' by the hintannotator)
+ # XXX is this the best way to deal with it?
+ constant_fold_graph(graph)
self.insert_splits()
def insert_splits(self):
More information about the Pypy-commit
mailing list