This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)



------- Comment #9 from rakdver at atrey dot karlin dot mff dot cuni dot cz  2006-07-12 23:30 -------
Subject: Re:  poor optimization choices when iterating over a std::string
(probably not c++-specific)

> Zdenek: I don't see how you can say that what we get is optimal code "unless
> optimizing for size".  The code generated *will* be slower than the
> alternative.

why?  Exactly the same number of instructions is executed.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]