This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix memset recognition, paper over PR53346


Richard Guenther <rguenther@suse.de> writes:

> In PR53346 we vectorize a simple memset loop very inefficiently.
> But of course we should have detected this and transformed the
> loop into a memset!  Seems like we only do that if the original
> loop does sth else than memset as well.

Is there a way to turn this off?

I know code written in the past who explicitely wrote memset as a loop
because it couldn't deal with the optimizations optimized memsets do
(like reordering or changing access granuality.

One example is clearing something in memory mapped hardware registers.

It would be good at least if this was not done for volatile.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only


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