This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix ICE in estimate_bb_frequencies
- From: Markus Trippelsdorf <markus at trippelsdorf dot de>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Jul 2017 12:33:04 +0200
- Subject: Re: Fix ICE in estimate_bb_frequencies
- Authentication-results: sourceware.org; auth=none
- References: <20170718075420.GA38394@kam.mff.cuni.cz>
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