Author: Maciej Fijalkowski <fij...@gmail.com> Branch: optresult-unroll Changeset: r79448:6ae66edb3037 Date: 2015-09-05 10:56 +0200 http://bitbucket.org/pypy/pypy/changeset/6ae66edb3037/
Log: improve the InvalidLoop messages diff --git a/rpython/jit/metainterp/optimizeopt/unroll.py b/rpython/jit/metainterp/optimizeopt/unroll.py --- a/rpython/jit/metainterp/optimizeopt/unroll.py +++ b/rpython/jit/metainterp/optimizeopt/unroll.py @@ -127,7 +127,7 @@ try: label_args = self.import_state(start_label, state) except VirtualStatesCantMatch: - raise InvalidLoop + raise InvalidLoop("Cannot import state, virtual states don't match") self.potential_extra_ops = {} self.optimizer.init_inparg_dict_from(label_args) info, _ = self.optimizer.propagate_all_forward( @@ -153,7 +153,9 @@ for arg in args: self.optimizer.force_box(arg) except VirtualStatesCantMatch: - raise InvalidLoop + raise InvalidLoop("Virtual states did not match " + "after picking the virtual state, when forcing" + " boxes") extra_same_as = self.short_preamble_producer.extra_same_as[:] target_token = self.finalize_short_preamble(label_op, state.virtual_state) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit