Commit 4720f4af by Ilya Leoshkevich Committed by Jeff Law

re PR target/86547 (s390x: Maximum number of LRA assignment passes is achieved…

re PR target/86547 (s390x: Maximum number of LRA assignment passes is achieved (30) when compiling a small inline assembler snippet)

        PR target/86547
	* lra-lives.c (remove_some_program_points_and_update_live_ranges):
        Check whether lra_live_max_point is 0 before dividing.

From-SVN: r263548
parent 47f61a02
2018-08-14 Ilya Leoshkevich <iii@linux.ibm.com>
PR target/86547
* lra-lives.c (remove_some_program_points_and_update_live_ranges):
Check whether lra_live_max_point is 0 before dividing.
2018-08-14 Martin Sebor <msebor@redhat.com> 2018-08-14 Martin Sebor <msebor@redhat.com>
PR tree-optimization/86650 PR tree-optimization/86650
......
...@@ -1153,7 +1153,8 @@ remove_some_program_points_and_update_live_ranges (void) ...@@ -1153,7 +1153,8 @@ remove_some_program_points_and_update_live_ranges (void)
n++; n++;
if (lra_dump_file != NULL) if (lra_dump_file != NULL)
fprintf (lra_dump_file, "Compressing live ranges: from %d to %d - %d%%\n", fprintf (lra_dump_file, "Compressing live ranges: from %d to %d - %d%%\n",
lra_live_max_point, n, 100 * n / lra_live_max_point); lra_live_max_point, n,
lra_live_max_point ? 100 * n / lra_live_max_point : 100);
if (n < lra_live_max_point) if (n < lra_live_max_point)
{ {
lra_live_max_point = n; lra_live_max_point = n;
......
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