[Bug tree-optimization/92226] [10 Regression] live nul char store to array eliminated
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 28 23:46:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92226
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Mon Oct 28 23:46:09 2019
New Revision: 277545
URL: https://gcc.gnu.org/viewcvs?rev=277545&root=gcc&view=rev
Log:
PR tree-optimization/92226 - live nul char store to array eliminated
gcc/testsuite/ChangeLog:
PR tree-optimization/92226
* gcc.dg/strlenopt-88.c: New test.
gcc/ChangeLog:
PR tree-optimization/92226
* tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
the offset is in the open range outlined by SI's length.
Added:
trunk/gcc/testsuite/gcc.dg/strlenopt-88.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-strlen.c
More information about the Gcc-bugs
mailing list