c/10339: [sparc] Invalid optimization: replacing strncmp by memcmp
Richard Henderson
rth@redhat.com
Wed Apr 9 05:56:00 GMT 2003
The following reply was made to PR optimization/10339; it has been noted by GNATS.
From: Richard Henderson <rth@redhat.com>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, ubell@sleepycat.com,
gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c/10339: [sparc] Invalid optimization: replacing strncmp by memcmp
Date: Tue, 8 Apr 2003 22:47:08 -0700
On Tue, Apr 08, 2003 at 10:43:36AM +0930, Alan Modra wrote:
> A more reasonable objection to the
> strncmp -> memcmp transformation is that a memcmp implementation
> might load multiple words into registers (say a cache-line worth),
> before comparing.
Agreed.
r~
More information about the Gcc-prs
mailing list