This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22141] [4.4/4.5/4.6/4.7 Regression] Missing optimization when storing structures
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 11:20:35 +0000
- Subject: [Bug middle-end/22141] [4.4/4.5/4.6/4.7 Regression] Missing optimization when storing structures
- Auto-submitted: auto-generated
- References: <bug-22141-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22141
--- Comment #23 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-12 11:20:35 UTC ---
As we have MEM_REF available we can in theory do the combining on the
tree-level
as well (or during gimplification). In fact, as we have the byteswap
detection pass which does not yet handle byte-swapping memory (thus, a
memory destination) it looks like a perfect place to handle this while
also fixing that deficiency (gather sources for a contiguous piecewise
stored memory region of suitable register size/alignment).