This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Your predict.c patch


> 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?
I will try. Strange is that I do the computation only if I find exit,
so how can I divide by zero if there is no exits?

OK, I will investigate.
Honza
> Thanks.
> 
> 	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]