https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96539

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Last reconfirmed|                            |2020-08-10
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 49035
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49035&action=edit
gcc11-pr96539.patch

Untested fix.  At GIMPLE we already optimize away memmove etc. calls with the
same destination as source, but for the arguments copying this didn't get
through GIMPLE memmove call, so the patch just does nothing at the RTL level
too.  For -O2 the copying was expanded piecewise and as such was later
optimized away when the generic code seed noop copying.

Reply via email to