This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: std::pow implementation
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>, gcc at gcc dot gnu dot org
- Date: 29 Jul 2003 14:49:26 +0200
- Subject: Re: std::pow implementation
- References: <Pine.LNX.4.44.0307291439570.14031-100000@bellatrix.tat.physik.uni-tuebingen.de>
Op di 29-07-2003, om 14:43 schreef Richard Guenther:
> Steven, does the code in your example optimize to the same as x*X?
Not at the tree level because we don't have loop unrolling there. I
would expect that the RTL inliner can deduce the number of iterations
and unroll the loop. All other code is dead at that point and you'd end
up with x*x. But I haven't checked that.
Gr.
Steven