This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30442] Expanded array initialization can use memset builtin function
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2008 11:05:19 -0000
- Subject: [Bug middle-end/30442] Expanded array initialization can use memset builtin function
- References: <bug-30442-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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