[pypy-commit] pypy vecopt: removed unused dict, lead to rpy error (no values included)
plan_rich
noreply at buildbot.pypy.org
Mon Jun 1 15:52:59 CEST 2015
Author: Richard Plangger <rich at pasra.at>
Branch: vecopt
Changeset: r77742:9492770f0741
Date: 2015-06-01 15:52 +0200
http://bitbucket.org/pypy/pypy/changeset/9492770f0741/
Log: removed unused dict, lead to rpy error (no values included)
diff --git a/rpython/jit/metainterp/optimizeopt/vectorize.py b/rpython/jit/metainterp/optimizeopt/vectorize.py
--- a/rpython/jit/metainterp/optimizeopt/vectorize.py
+++ b/rpython/jit/metainterp/optimizeopt/vectorize.py
@@ -759,11 +759,8 @@
class X86_CostModel(CostModel):
- COST_BENEFIT = {
- }
-
def savings_for_pack(self, opnum, times):
- cost, benefit_factor = X86_CostModel.COST_BENEFIT.get(opnum, (1,1))
+ cost, benefit_factor = (1,1) # TODO custom values for different ops
return benefit_factor * times - cost
def unpack_cost(self, index, op):
More information about the pypy-commit
mailing list