PR tree-optimization/64823
commitc3fcfd44da367ae283e26a80c247c83278d484c1
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Feb 2015 21:09:58 +0000 (13 21:09 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Feb 2015 21:09:58 +0000 (13 21:09 +0000)
treeb427100e1f8bad39e331f65b368651e87cfa1721
parenteaa6752ede63edfc64da0db4a6e96657cf41325e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220696 138bc75d-0d04-0410-961f-82ee72b054a4
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