------- Comment #7 from pinskia at gmail dot com 2010-09-01 04:41 ------- Subject: Re: Bad optimization in -O3 sometimes
On Aug 31, 2010, at 9:32 PM, "yotambarnoy at gmail dot com" <gcc-bugzi...@gcc.gnu.org > wrote: > > > ------- Comment #6 from yotambarnoy at gmail dot com 2010-09-01 > 04:32 ------- > I recently implemented a custom memcpy for ScummVM. I didn't notice > the > standard memcpy using lwl and lwr. In any case, how would memcpy do > it any > better? Unless you're referring to the new memcpy inlining in newer > versions of > gcc? I am referring to the standard builtin version of memcpy. It is not just in newer versions; it has been there since 3.0. What is new is the more optimized version for x86 with either a large constant or a non constant. Can you try memcpy? If that does not work, please file a bug and cc me, I will see what I can do. I am working with MIPS lately. > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45462 > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45462