OSDN Git Service

* builtins.c (fold_builtin_memory_op): Optimize memmove
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2009 21:40:08 +0000 (21:40 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2009 21:40:08 +0000 (21:40 +0000)
commit3f95c6909beb5ba36887def50f7d0421f02196b0
treef297688f9b2d8bcdac9ab1042ac06506c382e691
parent38150ede8ad6888fdd345bee3712de01636a1e3e
* builtins.c (fold_builtin_memory_op): Optimize memmove
into memcpy if we can prove source and destination don't overlap.

* gcc.dg/memmove-2.c: New test.
* gcc.dg/memmove-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145127 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/memmove-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/memmove-3.c [new file with mode: 0644]