This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, middle-end]: Convert (int)logb() into ilogb().
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.
Uros.