re PR middle-end/36550 (Wrong "may be used uninitialized" warning (conditional PHIs))
authorJeff Law <law@redhat.com>
Fri, 15 Dec 2017 22:35:51 +0000 (15:35 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 15 Dec 2017 22:35:51 +0000 (15:35 -0700)
commitb021b385661c7d6db34ef69e9e0cb89677b54ef4
tree1ec9080b51eb1ab9c5076a5080fe7d4d67b53e16
parent5806e0622de3356ae291a74a4c0d4c2e0af4c0d6
re PR middle-end/36550 (Wrong "may be used uninitialized" warning (conditional PHIs))

PR tree-optimization/36550
* tree-ssa-threadupdate.c (count_stmts_and_phis_in_block): New.
(mark_threaded_blocks): Rewrite code to avoid block copying when
optimizing for size.  Don't pessimize blocks which will be
copied, but all the statements will be dead.

PR tree-optimization/36550
* gcc.dg/tree-ssa/pr36550.c: New test.

From-SVN: r255731
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr36550.c [new file with mode: 0644]
gcc/tree-ssa-threadupdate.c