std::pow implementation

Steven Bosscher s.bosscher@student.tudelft.nl
Tue Jul 29 12:59:00 GMT 2003


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



More information about the Gcc mailing list