re PR tree-optimization/83444 (missing strlen optimization on a member array of a...
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Dec 2017 07:44:07 +0000 (08:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Dec 2017 07:44:07 +0000 (08:44 +0100)
commitf744bfec7ffb92b476da82bc62a81eaf087b2391
tree14829559d70dd7a4530537fb45f37839eba9b180
parentd6ea70a0dcf7ca69321c6fa7c583bc9a2ca3dfd0
re PR tree-optimization/83444 (missing strlen optimization on a member array of a local struct)

PR tree-optimization/83444
* tree-ssa-strlen.c (strlen_check_and_optimize_stmt): Optimize
character loads.

* gcc.dg/strlenopt-38.c: New test.

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