[pypy-commit] pypy default: (tanzim, arigo)
arigo
noreply at buildbot.pypy.org
Tue Dec 9 16:32:05 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r74861:d49c95b3abf7
Date: 2014-12-09 16:31 +0100
http://bitbucket.org/pypy/pypy/changeset/d49c95b3abf7/
Log: (tanzim, arigo)
Ignore the jit_force_virtualizables that are common in or around
pypy's interpreter main loop.
diff --git a/rpython/translator/backendopt/inline.py b/rpython/translator/backendopt/inline.py
--- a/rpython/translator/backendopt/inline.py
+++ b/rpython/translator/backendopt/inline.py
@@ -478,6 +478,7 @@
'malloc': 2,
'instrument_count': 0,
'debug_assert': -1,
+ 'jit_force_virtualizable': 0,
}
def block_weight(block, weights=OP_WEIGHTS):
diff --git a/rpython/translator/backendopt/storesink.py b/rpython/translator/backendopt/storesink.py
--- a/rpython/translator/backendopt/storesink.py
+++ b/rpython/translator/backendopt/storesink.py
@@ -5,7 +5,7 @@
from rpython.translator import simplify
def has_side_effects(op):
- if op.opname == 'debug_assert':
+ if op.opname == 'debug_assert' or op.opname == 'jit_force_virtualizable':
return False
try:
return getattr(llop, op.opname).sideeffects
More information about the pypy-commit
mailing list