------- Comment #23 from jakub at gcc dot gnu dot org  2010-04-29 13:18 -------
Created an attachment (id=20514)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20514&action=view)
d3.c

BTW, I've timed different variants of the C code for the tonto loop, and
time /tmp/d3 1

real    0m0.667s
user    0m0.666s
sys     0m0.001s

time /tmp/d3 2

real    0m0.640s
user    0m0.639s
sys     0m0.000s

time /tmp/d3 3

real    0m0.616s
user    0m0.614s
sys     0m0.002s

and clearly the last one (versioning the loop if the temporary can be easily
avoided for -O3 at least) is the winner here.  I've started looking into that
yesterday.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42958

Reply via email to