re PR tree-optimization/64823 (false "may be used uninitialized", missed jump threading)
authorJeff Law <law@redhat.com>
Fri, 13 Feb 2015 21:09:58 +0000 (14:09 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 13 Feb 2015 21:09:58 +0000 (14:09 -0700)
commit8f895cf1ac7babe0c89533e8e9e6b6ca6bb33950
treeb427100e1f8bad39e331f65b368651e87cfa1721
parentbe1448389ab3038cccba3ed99e157bd6842ef88f
re PR tree-optimization/64823 (false "may be used uninitialized", missed jump threading)

PR tree-optimization/64823
* tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
* tree-ssa-threadedge.c (potentially_threadable_block): Allow
threading through blocks with PHIs, but no statements.
(thread_through_normal_block): Distinguish between blocks where
we did not process all the statements and blocks with no statements.

PR tree-optimization/64823
gcc.dg/uninit-20.c: New test.

From-SVN: r220696
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-20.c [new file with mode: 0644]
gcc/tree-ssa-threadedge.c
gcc/tree-vrp.c