Commit 755a1ca5 by Richard Guenther Committed by Richard Biener

tree-cfg.c (print_loop): Avoid ICEing for loops marked for removal and loops with multiple latches.

2012-08-13  Richard Guenther  <rguenther@suse.de>

	* tree-cfg.c (print_loop): Avoid ICEing for loops marked for
	removal and loops with multiple latches.

From-SVN: r190344
parent eb87c7c4
2012-08-13 Richard Guenther <rguenther@suse.de>
* tree-cfg.c (print_loop): Avoid ICEing for loops marked for
removal and loops with multiple latches.
2012-08-13 Jakub Jelinek <jakub@redhat.com>
PR c/53968
......
......@@ -6870,8 +6870,18 @@ print_loop (FILE *file, struct loop *loop, int indent, int verbosity)
s_indent[indent] = '\0';
/* Print loop's header. */
fprintf (file, "%sloop_%d (header = %d, latch = %d", s_indent,
loop->num, loop->header->index, loop->latch->index);
fprintf (file, "%sloop_%d (", s_indent, loop->num);
if (loop->header)
fprintf (file, "header = %d", loop->header->index);
else
{
fprintf (file, "deleted)\n");
return;
}
if (loop->latch)
fprintf (file, ", latch = %d", loop->latch->index);
else
fprintf (file, ", multiple latches");
fprintf (file, ", niter = ");
print_generic_expr (file, loop->nb_iterations, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment