[Bug tree-optimization/38865] missing FRE with VIEW_CONVERT_EXPR
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 16 18:59:00 GMT 2009
------- Comment #6 from pinskia at gcc dot gnu dot org 2009-01-16 18:59 -------
Here is another testcase but this time without -> :
struct s { int i; };
void g(struct s *);
float a (void)
{
struct s sv;
sv.i = 0;
int d = sv.i;
float d1 = *(float*)&d;
g(&sv);
return d1;
}
float a1 (void)
{
struct s sv;
sv.i = 0;
float d = *(float*)&sv.i;
g(&sv);
return d;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38865
More information about the Gcc-bugs
mailing list