public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/112653] New: We should optimize memmove to memcpy using alias oracle
@ 2023-11-21 15:11 hubicka at gcc dot gnu.org
  2023-11-21 21:14 ` [Bug middle-end/112653] " pinskia at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: hubicka at gcc dot gnu.org @ 2023-11-21 15:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112653
           Summary: We should optimize memmove to memcpy using alias
                    oracle
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
  Target Milestone: ---

In this testcase (losely based on libstdc++ implementation of vectors)
I we should be able to turn memmove to memcpy because we know that the two
parameters can not alias
#include <stdlib.h>
#include <string.h>
char *test;
char *
copy_test ()
{
        char *test2 = malloc (1000);
        memmove (test2, test, 1000);
        return test2;
}

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-03-19 15:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 15:11 [Bug middle-end/112653] New: We should optimize memmove to memcpy using alias oracle hubicka at gcc dot gnu.org
2023-11-21 21:14 ` [Bug middle-end/112653] " pinskia at gcc dot gnu.org
2023-11-21 21:28 ` sjames at gcc dot gnu.org
2023-11-21 21:44 ` hubicka at gcc dot gnu.org
2023-11-22 10:46 ` rguenth at gcc dot gnu.org
2023-11-22 13:27 ` hubicka at ucw dot cz
2023-11-22 14:29 ` rguenth at gcc dot gnu.org
2023-11-23 15:10 ` [Bug middle-end/112653] PTA should handle correctly escape information of values returned by a function hubicka at gcc dot gnu.org
2023-11-24 23:25 ` hubicka at gcc dot gnu.org
2023-11-27  7:27 ` rguenther at suse dot de
2023-11-27  7:27 ` rguenth at gcc dot gnu.org
2023-11-27  9:02 ` rguenth at gcc dot gnu.org
2023-11-27  9:23 ` rguenth at gcc dot gnu.org
2023-11-27 14:39 ` cvs-commit at gcc dot gnu.org
2023-11-27 14:39 ` rguenth at gcc dot gnu.org
2023-11-27 17:53 ` hubicka at ucw dot cz
2024-03-19 15:25 ` tschwinge at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).