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: [RFH] - Less than optimal code compiling 252.eon -O2 for x86



On Jun 24, 2005, at 3:16 PM, Andrew Pinski wrote:

I wonder why combine can do the simplification though which is why still
produce good code for the simple testcase:
void f1(double *d,float *f2)
{
*f2 = 0.0;
*d = 0.0;
}


It is hard to reproduce the simple test case, exhibiting the same problem (-O1 producing better code than -O2). Yes, small test cases move the desired simplification to other phases.

- fariborz

Thanks,
Andrew Pinski




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