Author: Richard Plangger <r...@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):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to