On 2017.07.18 at 09:54 +0200, Jan Hubicka wrote: > Hi, > this patch fixes ICE in estimate_bb_frequencies which triggers because we > forget > to compute probability for blocks whose count is earlier statically > determined to be > 0. > > Bootstrapped/regtested x86_64-linux, will commit it shortly.
It also fixes both testcases from PR81318. However the following testcase still ICEs: trippels@gcc2-power8 linux % cat main.i int a; extern void fn4(); __attribute__((__cold__)) void fn1(); void fn2() { fn1(); } void fn3() { fn2(); if (a) fn4(); } trippels@gcc2-power8 linux % gcc -O2 -c main.i during GIMPLE pass: profile_estimate main.i: In function ‘fn3’: main.i:9:1: internal compiler error: in to_reg_br_prob_base, at profile-count.h:189 -- Markus