This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/44194] struct returned by value generates useless stores
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jun 2011 21:10:52 +0000
- Subject: [Bug rtl-optimization/44194] struct returned by value generates useless stores
- Auto-submitted: auto-generated
- References: <bug-44194-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44194
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #22 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-06-15 21:09:18 UTC ---
> The DSE patch still leaves 2 redundant stores.
OK, I missed this, reopening...
> The following patch will enable DSE to remove those two stores. Does this
> look ok?
Calling into the gimplifier from the RTL expander doesn't look appropriate.
More fundamentally, it's a little unfortunate to spill to memory a value
returned in registers. Can we try to use emit_group_move_into_temps here
instead (under the appropriate circumstances)?