From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22380 invoked by alias); 25 Dec 2009 08:55:28 -0000 Received: (qmail 22360 invoked by uid 48); 25 Dec 2009 08:55:15 -0000 Date: Fri, 25 Dec 2009 08:55:00 -0000 Subject: [Bug target/42497] New: GCC can do less work in the frequently executed path X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "carrot at google dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg02376.txt.bz2 Compile following code with options -march=armv5te -O2 extern void *memcpy(void *dst, const void *src, int n); void *memmove(void *dst, const void *src, int n) { const char *p = src; char *q = dst; if (__builtin_expect(q < p, 1)) { return memcpy(dst, src, n); } else { int i=0; for (; i