[Bug rtl-optimization/44194] struct returned by value generates useless stores
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 15 21:11:00 GMT 2011
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)?
More information about the Gcc-bugs
mailing list