[Bug tree-optimization/21576] FRE does not eliminate a redundant builtin call.

dberlin at dberlin dot org gcc-bugzilla@gcc.gnu.org
Sat May 14 21:40:00 GMT 2005


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-05-14 21:39 -------
Subject: Re:  FRE does not eliminate a
	redundant builtin call.

On Sat, 2005-05-14 at 21:30 +0000, pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-14 21:30 -------
> Confirmed, here is another testcase (for -ffast-math):
> double cos (double);
> void link_error();
> void f(double a)
> {
>   double b = cos (a);
>   double c = cos (a);
>   if (b!=c)
>     link_error();
> }
> 

Yes, we should make the result of a CONST call available, but don't.




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21576



More information about the Gcc-bugs mailing list