http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58277
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed May 7 16:01:24 2014 New Revision: 210171 URL: http://gcc.gnu.org/viewcvs?rev=210171&root=gcc&view=rev Log: Backported from mainline 2013-08-30 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/58277 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up after seeing too many stmts with vdef in between dombb and current bb, invalidate everything. * gcc.c-torture/execute/pr58277-1.c: New test. * gcc.c-torture/execute/pr58277-2.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/execute/pr58277-1.c branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/execute/pr58277-2.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/testsuite/ChangeLog branches/gcc-4_7-branch/gcc/tree-ssa-strlen.c