[pypy-commit] pypy ppc-vsx-support: failargs can have None entries, consider this while iterating
plan_rich
pypy.commits at gmail.com
Wed Sep 21 13:27:15 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: ppc-vsx-support
Changeset: r87286:46098ed56db2
Date: 2016-09-21 19:26 +0200
http://bitbucket.org/pypy/pypy/changeset/46098ed56db2/
Log: failargs can have None entries, consider this while iterating
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
@@ -46,7 +46,7 @@
if op.is_guard():
args = args[:] + op.getfailargs()
for arg in args:
- if arg.is_constant() or arg.is_inputarg():
+ if arg is None or arg.is_constant() or arg.is_inputarg():
continue
if arg not in self.seen:
box = self.renamer.rename_box(arg)
More information about the pypy-commit
mailing list