This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Your predict.c patch
- From: Jan Hubicka <jh at suse dot cz>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: jh at suse dot cz, gcc at gcc dot gnu dot org
- Date: Fri, 14 Dec 2001 21:38:57 +0100
- Subject: Re: Your predict.c patch
- References: <20011214121053.M4087@devserv.devel.redhat.com>
> Hi!
>
> Your
> Thu Dec 13 12:31:07 CET 2001 Jan Hubicka <jh@suse.cz>
>
> * predict.c (estimate_probability): Distribute the loop exit
> probability according to number of exit edges.
>
> patch broke a couple of testcases on ia32, particularly:
> FAIL: gcc.c-torture/compile/921202-1.c, -Os
> FAIL: gcc.c-torture/compile/950613-1.c, -O1
> FAIL: gcc.c-torture/compile/950613-1.c, -Os
>
> The problem is that if exits is 0, you divide by zero.
> Can you fix this?
> Thanks.
How did you configured gcc? I am trying to reproduce it (i386/i686) but I don't
have the luck...
Honza
>
> Jakub