PR tree-optimization/92226 - live nul char store to array eliminated
authorMartin Sebor <msebor@redhat.com>
Mon, 28 Oct 2019 23:46:09 +0000 (23:46 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 28 Oct 2019 23:46:09 +0000 (17:46 -0600)
commit02c4de7631a177ea44149332aa1294a60ed9adad
tree42ae1d041a7a04aa7f3c1fe8003efd45ff7da865
parentad1539d5555a161cf6851de8995641d6dfe792d9
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.

From-SVN: r277545
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/strlenopt-88.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c