Author: Richard Plangger <[email protected]>
Branch: vecopt
Changeset: r78290:2d5ff3f421e1
Date: 2015-06-24 12:17 +0200
http://bitbucket.org/pypy/pypy/changeset/2d5ff3f421e1/
Log: well, should be int_mul not int_add...
diff --git a/rpython/jit/metainterp/optimizeopt/schedule.py
b/rpython/jit/metainterp/optimizeopt/schedule.py
--- a/rpython/jit/metainterp/optimizeopt/schedule.py
+++ b/rpython/jit/metainterp/optimizeopt/schedule.py
@@ -241,13 +241,17 @@
def check_if_pack_supported(self, pack):
op0 = pack.operations[0].getoperation()
+ if self.input_type is None:
+ # must be a load operation
+ assert op0.is_raw_load()
+ return
insize = self.input_type.getsize()
if op0.casts_box():
# prohibit the packing of signext calls that
# cast to int16/int8.
_, outsize = op0.cast_to()
self._prevent_signext(outsize, insize)
- if op0.getopnum() == rop.INT_ADD:
+ if op0.getopnum() == rop.INT_MUL:
if insize == 8 or insize == 1:
# see assembler for comment why
raise NotAProfitableLoop
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit