------- Comment #4 from ubizjak at gmail dot com 2008-03-12 11:05 ------- This still happens on mainline.
I wonder if vectorizer infrastructure can be re-used here to detect unrolled and looped version of memset. In addition to loop that can be "vectorized", we have something resembling "vectorization" of straight code. And looking at comment #3, the rewards from real-world code look really promising. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30442