This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code
- From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Mar 2004 18:55:58 -0000
- Subject: [Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code
- References: <20030729120327.11706.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2004-03-11 18:55 -------
Subject: Re: std::pow(T, int) implementation pessimizes
code
gdr at integrable-solutions dot net wrote:
> ------- Additional Comments From gdr at integrable-solutions dot net 2004-03-10 20:19 -------
> Subject: Re: std::pow(T, int) implementation pessimizes code
>
> "pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
>
> | ------- Additional Comments From pcarlini at suse dot de 2004-03-10 20:01 -------
> | Subject: Re: std::pow(T, int) implementation pessimizes
> | code
> |
> | gdr at integrable-solutions dot net wrote:
> |
> | >| >The issue is actually solved in tree--ssa (or was reported as
> | >| >such at some point in the past). I believe this should be targetted
> | >| >for 3.5.0. It really is compiler-optimization issue even though it is
> | >| >not labelled as scuh.
> | >| >
> | >| >
> | >| This is very good to know, if confirmed: do you have a pointer?
> | >
> | >Don't have a pointer handy but, google for messages from Richard G. with the
> | >complain that the ::pow() is no longer "inlined".
> | >
> | >
> | Anyway, the issue is *not* solved in tree-ssa, because __cmath_power
>
> Did you get the report that ::pow() is no longer inlined?
This was fixed by Roger already. It was basically ::pow(x, a) where a
is 1, 2, -1 was not optimized without -ffast-math.
Sorry to be so late in the discussion - just returned from one week
vacation.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11706