diff options
author | Jeff Law <law@redhat.com> | 2015-10-29 10:20:06 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-10-29 10:20:06 -0600 |
commit | 21f0717ab16fe725e887536f5f90b7487b6431cd (patch) | |
tree | cbe77223cf0c65aa5396de518c330072d3fd1143 /gcc/tree-ssa-threadbackward.h | |
parent | 3ddb720ebfccb2c64d731cd841ce3388e87abf55 (diff) | |
download | gcc-21f0717ab16fe725e887536f5f90b7487b6431cd.zip gcc-21f0717ab16fe725e887536f5f90b7487b6431cd.tar.gz gcc-21f0717ab16fe725e887536f5f90b7487b6431cd.tar.bz2 |
[PATCH][PR tree-optimization/67892] Use FSM threader to handle backedges
PR tree-optimization/67892
* tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
in comment.
(thread_through_normal_block): If we have seen a backedge, then
do nothing. No longer call find_jump_threads_backwards here.
(thread_across_edge): Use find_jump_threads_backwards to find
jump threads if the old style threader was not successful.
* tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
gsi_last_nondebug_bb. Return NULL if the block does not end
with a control statement.
(find_jump_threads_backwards): Setup code moved here from
tree-ssa-threadedge.c::thread_through_normal_block. Accept
single edge argument instead of name & block.
* tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
prototype.
PR tree-optimization/67892
* gcc.dg/tree-ssa/pr21417: Update expected output.
* gcc.dg/tree-ssa/ssa-dom-thread-2b.c: Likewise.
From-SVN: r229538
Diffstat (limited to 'gcc/tree-ssa-threadbackward.h')
-rw-r--r-- | gcc/tree-ssa-threadbackward.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-threadbackward.h b/gcc/tree-ssa-threadbackward.h index f055f43..2136ff2 100644 --- a/gcc/tree-ssa-threadbackward.h +++ b/gcc/tree-ssa-threadbackward.h @@ -20,6 +20,6 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_TREE_SSA_THREADFSM_H #define GCC_TREE_SSA_THREADFSM_H -extern void find_jump_threads_backwards (tree, basic_block); +extern void find_jump_threads_backwards (edge); #endif /* GCC_TREE_SSA_THREADFSM_H */ |