Some statement counts for gcc
Zack Weinberg
zack@codesourcery.com
Mon Aug 26 00:17:00 GMT 2002
On Sun, Aug 25, 2002 at 06:04:11PM -0500, Brad Lucier wrote:
> branch prediction : 165.11 (33%) usr 0.07 ( 1%) sys 165.50 (33%) wall
...
> A surprising (to me) number of lines in real.c are executed; I might look
> there to see what's going on.
The branch predictor uses emulated floating point numbers internally.
Jan Hubicka has explained why this is currently necessary -- can't
find the message at the moment though. However, real.c is indeed
quite slow; I suspect that accounts entirely for the amount of time
spent in this patch
If I remember correctly this code has a very complicated flow graph,
and branch prediction may not help much; perhaps the right thing is
to detect code like this and disable that optimization.
zw
More information about the Gcc
mailing list