re PR tree-optimization/69196 (code size regression with jump threading at -O2)
authorJeff Law <law@redhat.com>
Mon, 25 Jan 2016 19:19:09 +0000 (12:19 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 25 Jan 2016 19:19:09 +0000 (12:19 -0700)
commit2c89b952c7f02379c087e67998efc85d69310014
tree39cff29e36960823dc612da3db132b0db43ab126
parent2944621e2c2dd73c3162eb052d9250ea4e15fda6
re PR tree-optimization/69196 (code size regression with jump threading at -O2)

PR tree-optimization/69196
PR tree-optimization/68398
* tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
tree-ssa-threadupdate.c.
(determine_bb_domination_status): Prototype
* tree-ssa-threadupdate.c (enum bb_dom_status): Remove
(determine_bb_domination_status): No longer static.
(valid_jump_thread_path): Remove code to detect characteristics
of the jump thread path not associated with correctness.
* tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
Correct test for thread path length.  Count PHIs for real operands as
statements that need to be copied.  Do not count ASSERT_EXPRs.
Look at all the blocks in the thread path.  Compute and selectively
filter thread paths based on threading through the latch, threading
a multiway branch or crossing a multiway branch.

PR tree-optimization/69196
PR tree-optimization/68398
* gcc.dg/tree-ssa/pr66752-3.c: Update expected output
* gcc.dg/tree-ssa/pr68198.c: Likewise.

From-SVN: r232802
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr66752-3.c
gcc/testsuite/gcc.dg/tree-ssa/pr68198.c
gcc/tree-ssa-threadbackward.c
gcc/tree-ssa-threadupdate.c
gcc/tree-ssa-threadupdate.h