c/10339: [sparc] Invalid optimization: replacing strncmp by memcmp

Richard Henderson rth@redhat.com
Wed Apr 9 05:49:00 GMT 2003


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-bugs mailing list