Commit c77bb674 by Richard Biener Committed by Richard Biener

re PR tree-optimization/86038 (ICE in to_reg_br_prob_base, at profile-count.h:242)

2018-06-04  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/86038
	* tracer.c (find_best_successor): Check probability for
	being initialized, bail out if not.

	* gcc.dg/pr86038.c: New testcase.

From-SVN: r261142
parent 34a1d5c2
2018-06-04 Richard Biener <rguenther@suse.de>
PR tree-optimization/86038
* tracer.c (find_best_successor): Check probability for
being initialized, bail out if not.
2018-06-04 Richard Earnshaw <rearnsha@arm.com>
PR target/86003
......
2018-06-04 Richard Biener <rguenther@suse.de>
PR tree-optimization/86038
* gcc.dg/pr86038.c: New testcase.
2018-06-04 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/69615
......
/* { dg-do compile } */
/* { dg-require-effective-target pthread } */
/* { dg-options "-O2 -ftracer -ftree-parallelize-loops=2 -fno-tree-scev-cprop --param parloops-schedule=dynamic" } */
int
sd (int lw)
{
while (lw < 1)
++lw;
return lw;
}
......@@ -159,7 +159,8 @@ find_best_successor (basic_block bb)
}
if (!best || ignore_bb_p (best->dest))
return NULL;
if (best->probability.to_reg_br_prob_base () <= probability_cutoff)
if (!best->probability.initialized_p ()
|| best->probability.to_reg_br_prob_base () <= probability_cutoff)
return NULL;
return best;
}
......
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