[pypy-commit] pypy vecopt: silenced rpython complaints
plan_rich
noreply at buildbot.pypy.org
Thu Jun 4 18:47:09 CEST 2015
Author: Richard Plangger <rich at pasra.at>
Branch: vecopt
Changeset: r77873:e5d7788d191b
Date: 2015-06-04 18:47 +0200
http://bitbucket.org/pypy/pypy/changeset/e5d7788d191b/
Log: silenced rpython complaints
diff --git a/rpython/jit/backend/x86/assembler.py b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -2638,6 +2638,7 @@
def genop_vec_int_expand(self, op, arglocs, resloc):
srcloc, sizeloc = arglocs
+ assert isinstance(srcloc, RegLoc)
assert not srcloc.is_xmm
size = sizeloc.value
if size == 8:
diff --git a/rpython/jit/backend/x86/regalloc.py b/rpython/jit/backend/x86/regalloc.py
--- a/rpython/jit/backend/x86/regalloc.py
+++ b/rpython/jit/backend/x86/regalloc.py
@@ -1635,10 +1635,10 @@
def consider_vec_int_expand(self, op):
arg = op.getarg(0)
+ args = op.getarglist()
if isinstance(arg, Const):
srcloc = self.rm.convert_to_imm(arg)
else:
- args = op.getarglist()
srcloc = self.make_sure_var_in_reg(arg, args)
resloc = self.xrm.force_allocate_reg(op.result, args)
assert isinstance(op.result, BoxVector)
More information about the pypy-commit
mailing list