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] | |
On 1/31/07, Paolo Bonzini <paolo.bonzini@lu.unisi.ch> wrote:
> > This patch implements a small optimization opportunity by converting > > (int)logb() into ilogb() for -ffast-math. > > Cute. Why not do so in fold-const.c?
Because there are no constants involved. ;)
Also, it converts floating point result into integer, so IMO its place should be near (int)rint() -> lrint() code in convert.c that does exactly the same transformation.
That should also move to fold-const.c ... (in fact, all the BUILT_IN tansformations should).
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |