[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2022-05-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #17 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:9e7a0e42a15eb53850496e91f2e484ed74ac3617 commit r13-738-g9e7a0e42a15eb53850496e91f2e484ed74ac3617 Author: Roger Sayle Date: Tue

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2018-11-19 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #16 from Jeffrey A. Law --- I think Qing did a fair amount of tuning on this work. If we're not handling a particular case it's likely because it wasn't generally profitable.

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2018-11-19 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2018-11-19 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #14 from Richard Biener --- I think the gimple part isn't done fully? Only single-char compares are inlined?

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-09 Thread bernds at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Bug 52171 depends on bug 71413, which changed state. Bug 71413 Summary: [7 Regression] bootstrap (gnat) broken on arm-linux-gnueabi* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71413 What|Removed |Added

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-05 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #12 from Andreas Schwab --- This breaks ada bootstrap on ia64, causing bootstrap comparison failure. Bootstrap comparison failure! gcc/ada/sem_ch13.o differs make[1]: *** [compare] Error 1

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-04 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #11 from Oleg Endo --- Author: olegendo Date: Sat Jun 4 11:00:58 2016 New Revision: 237090 URL: https://gcc.gnu.org/viewcvs?rev=237090=gcc=rev Log: gcc/ChangeLog PR tree-optimization/52171 * config/sh/sh.c

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-04 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #10 from Andreas Schwab --- ../../gcc/expr.c:1146:60: error: unused parameter 'mode' [-Werror=unused-parameter] move_by_pieces_d::generate (rtx op0, rtx op1, machine_mode mode)

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Andrew Pinski changed: What|Removed |Added Blocks||12086 --- Comment #9 from Andrew Pinski

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-03 Thread bernds at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #8 from Bernd Schmidt --- Author: bernds Date: Fri Jun 3 14:20:53 2016 New Revision: 237069 URL: https://gcc.gnu.org/viewcvs?rev=237069=gcc=rev Log: PR tree-optimization/52171 * builtins.c

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2013-02-19 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #6 from Richard Biener rguenth at gcc dot gnu.org 2013-02-19 14:50:52 UTC --- Happens in insn-preds.c quite often: case 'Y': if (!strncmp (str, Yi, 2)) return CONSTRAINT_Yi; if (!strncmp (str, Ym,

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2013-02-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #7 from Jakub Jelinek jakub at gcc dot gnu.org 2013-02-19 15:05:01 UTC --- (In reply to comment #6) Happens in insn-preds.c quite often: case 'Y': if (!strncmp (str, Yi, 2)) return CONSTRAINT_Yi;

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2012-05-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added CC||law at

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2012-05-05 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #4 from Andrew Pinski pinskia at gcc dot gnu.org 2012-05-06 04:55:13 UTC --- This really sounds like the same as PR 12086.

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2012-02-08 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2012-02-08 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2012-02-08 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2012-02-08 14:37:24 UTC --- For comparison against constants it might be worthwhile to still allow two loads to improve the number of alignment cases we can handle. Well, I'm not