This is the mail archive of the gcc-patches@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] |
Huh, an expert for trees could move all these convert.c optimizations, because they are all similar. Perhaps also a conversion from (int) trunc -> FIX_TRUNC_EXPR could be handled there, although it is a bit silly.Nothing against the patch but I would like to see the optimization in convert.c be moved to fold-const.c instead as fold is used more and more by the tree optimizators. Also it will help to cause cases like the following to be optimizated:
int f(double e)
{
double e1 = floor(e);
return e1;
}
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |