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
+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
--- /dev/null
+/* { 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;
+}
}
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;
}