re PR tree-optimization/64823 (false "may be used uninitialized", missed jump threading)
authorJeff Law <law@redhat.com>
Mon, 16 Feb 2015 20:56:55 +0000 (13:56 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 16 Feb 2015 20:56:55 +0000 (13:56 -0700)
commit215f8d9eb34eace83aad9261db15b2478ac734b1
treea6439f13a3fb8cf10f44d005b6dd6a2fd8999477
parented89033d7c15db7bbc3c6c6dfb9495ac263b3a73
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 real
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: r220743
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