This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/22141] [4.0/4.1/4.2/4.3 Regression] Missing optimization when storing structures
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2008 12:35:50 -0000
- Subject: [Bug ada/22141] [4.0/4.1/4.2/4.3 Regression] Missing optimization when storing structures
- References: <bug-22141-9973@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from steven at gcc dot gnu dot org 2008-01-18 12:35 -------
So 3.3 expanded the initializer into sets of the individual components, but
with ANDs and ORs and a single MEM store, instead of MEM stores to the
individual components.
It seems to me that this is not something you'd want to fix with a tree
optimizer. Maybe some local (i.e. per basic block) RTL pass:
1. Collect all stores
2. Find related stores
3. Combine related stores where possible and cheaper
I don't think this is not fixable for GCC 4.3.
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |ada
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22141