[pypy-commit] pypy vecopt: missing variable definition

plan_rich noreply at buildbot.pypy.org
Tue Jun 23 19:30:26 CEST 2015


Author: Richard Plangger <rich at pasra.at>
Branch: vecopt
Changeset: r78274:7e3a332fec89
Date: 2015-06-23 19:30 +0200
http://bitbucket.org/pypy/pypy/changeset/7e3a332fec89/

Log:	missing variable definition

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
@@ -658,6 +658,9 @@
             if packed.getarg(1) == inquestion.result:
                 return True
         if inquestion.casts_box():
+            #input_type = packed.output_type
+            #if not input_type:
+            #    return True
             pass
         return False
 
diff --git a/rpython/jit/metainterp/resoperation.py b/rpython/jit/metainterp/resoperation.py
--- a/rpython/jit/metainterp/resoperation.py
+++ b/rpython/jit/metainterp/resoperation.py
@@ -190,7 +190,8 @@
         return self._cls_has_bool_result
 
     def casts_box(self):
-        return self.getopnum() == rop.INT_SIGNEXT or \
+        opnum = self.getopnum()
+        return opnum == rop.INT_SIGNEXT or \
                rop.CAST_FLOAT_TO_INT <= opnum <= rop.CAST_SINGLEFLOAT_TO_FLOAT or \
                rop._VEC_CAST_FIRST <= opnum <= rop._VEC_CAST_LAST or \
                rop.CAST_PTR_TO_INT == opnum or \


More information about the pypy-commit mailing list