[Bug optimization/10339] [3.2/3.3/3.4 regression] [sparc,ppc,ppc64] Invalid optimization: replacing strncmp by memcmp
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 10 19:41:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10339
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-07-10 19:41 -------
Subject: Bug 10339
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_2-rhl8-branch
Changes by: jakub@gcc.gnu.org 2003-07-10 19:41:20
Modified files:
gcc : ChangeLog builtins.c
Log message:
PR optimization/10339
* builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
directly instead of unsafely transforming call into a memcmp.
(expand_builtin_strncmp): Likewise.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.13152.2.657.2.27.2.134&r2=1.13152.2.657.2.27.2.135
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.142.2.2.8.8&r2=1.142.2.2.8.9
More information about the Gcc-bugs
mailing list