public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/50417] New: regression: memcpy with known alignment
@ 2011-09-15  8:57 wouter.vermaelen at scarlet dot be
  2011-09-25 10:13 ` [Bug tree-optimization/50417] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: wouter.vermaelen at scarlet dot be @ 2011-09-15  8:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417

             Bug #: 50417
           Summary: regression: memcpy with known alignment
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: wouter.vermaelen@scarlet.be


Consider these functions:

void copy1(char* d, const char* s) {
    memcpy(d, s, 256);
}
void copy2(short* d, const short* s) {
    memcpy(d, s, 256);
}
void copy3(int* d, const int* s) {
    memcpy(d, s, 256);
}
void copy4(long* d, const long* s) {
    memcpy(d, s, 256);
}

g++-4.5.2 is able to generate better code for the later functions. But when I
test with a recent snapshot (SVN revision 178875 on linux x86_64) it generates
the same code for all versions (same as copy1()).


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

end of thread, other threads:[~2023-07-07 10:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-15  8:57 [Bug tree-optimization/50417] New: regression: memcpy with known alignment wouter.vermaelen at scarlet dot be
2011-09-25 10:13 ` [Bug tree-optimization/50417] " rguenth at gcc dot gnu.org
2012-06-06 11:01 ` rguenth at gcc dot gnu.org
2013-07-14 10:31 ` olegendo at gcc dot gnu.org
2013-10-09  9:25 ` gjl at gcc dot gnu.org
2014-04-02  8:39 ` rguenth at gcc dot gnu.org
2015-09-22  8:04 ` rguenth at gcc dot gnu.org
2021-05-14  9:46 ` [Bug tree-optimization/50417] [9/10/11/12 regression]: " jakub at gcc dot gnu.org
2021-06-01  8:05 ` rguenth at gcc dot gnu.org
2021-08-15  9:13 ` pinskia at gcc dot gnu.org
2022-05-27  9:34 ` [Bug tree-optimization/50417] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:30 ` jakub at gcc dot gnu.org
2023-07-07 10:29 ` [Bug tree-optimization/50417] [11/12/13/14 " rguenth 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).