aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadedge.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2016-05-27 10:32:38 -0600
committerJeff Law <law@gcc.gnu.org>2016-05-27 10:32:38 -0600
commit8b2ef235c0faad3b52da9a8bc7afd7adfb59cba6 (patch)
treefe2f5d0d566581af8f71517fd2e2914ba778b90e /gcc/tree-ssa-threadedge.c
parenta8345bfd646430d3f99b4a34ea5ea466446b1c0e (diff)
downloadgcc-8b2ef235c0faad3b52da9a8bc7afd7adfb59cba6.zip
gcc-8b2ef235c0faad3b52da9a8bc7afd7adfb59cba6.tar.gz
gcc-8b2ef235c0faad3b52da9a8bc7afd7adfb59cba6.tar.bz2
tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
* tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h. (thread_across_edge): Remove calls to find_jump_threads_backwards. * passes.def: Add jump threading passes before DOM/VRP. * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change argument to a basic block from an edge. Remove tests which are handled elsewhere. (pass_data_thread_jumps, class pass_thread_jumps): New. (pass_thread_jumps::gate, pass_thread_jumps::execute): New. (make_pass_thread_jumps): Likewise. * tree-pass.h (make_pass_thread_jumps): Declare. * gcc.dg/tree-ssa/pr21417.c: Update expected output. * gcc.dg/tree-ssa/pr66752-3.c: Likewise. * gcc.dg/tree-ssa/pr68198.c: Likewise. * gcc.dg/tree-ssa/pr69196-1.c: Likewise. * gcc.dg/tree-ssa/pr69270-3.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-thread-2b.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-thread-2g.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-thread-2h.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-thread-6.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-thread-7.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-thread-12.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-thread-13.c: Likewise. * gcc.dg/tree-ssa/vrp56.c: Likewise. From-SVN: r236831
Diffstat (limited to 'gcc/tree-ssa-threadedge.c')
-rw-r--r--gcc/tree-ssa-threadedge.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/tree-ssa-threadedge.c b/gcc/tree-ssa-threadedge.c
index eca3812..5fd5b98 100644
--- a/gcc/tree-ssa-threadedge.c
+++ b/gcc/tree-ssa-threadedge.c
@@ -34,7 +34,6 @@ along with GCC; see the file COPYING3. If not see
#include "params.h"
#include "tree-ssa-scopedtables.h"
#include "tree-ssa-threadedge.h"
-#include "tree-ssa-threadbackward.h"
#include "tree-ssa-dom.h"
#include "gimple-fold.h"
@@ -1183,8 +1182,6 @@ thread_across_edge (gcond *dummy_cond,
path->release ();
delete path;
- find_jump_threads_backwards (e);
-
/* A negative status indicates the target block was deemed too big to
duplicate. Just quit now rather than trying to use the block as
a joiner in a jump threading path.
@@ -1231,10 +1228,7 @@ thread_across_edge (gcond *dummy_cond,
{
if ((e->flags & EDGE_DFS_BACK) != 0
|| (taken_edge->flags & EDGE_DFS_BACK) != 0)
- {
- find_jump_threads_backwards (taken_edge);
- continue;
- }
+ continue;
/* Push a fresh marker so we can unwind the equivalences created
for each of E->dest's successors. */
@@ -1282,10 +1276,7 @@ thread_across_edge (gcond *dummy_cond,
register_jump_thread (path);
}
else
- {
- find_jump_threads_backwards (path->last ()->e);
- delete_jump_thread_path (path);
- }
+ delete_jump_thread_path (path);
/* And unwind the equivalence table. */
if (avail_exprs_stack)