aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2013-11-14 13:57:38 -0700
committerJeff Law <law@gcc.gnu.org>2013-11-14 13:57:38 -0700
commit5e94175fa5906a1417a229fe9ec93faa10502583 (patch)
tree844c78fddcf73f2724175bb18f2bd8e1f97aef7d /gcc/tree-inline.c
parent01ef823cdd7f0031d553b6798b2fa545781745f4 (diff)
downloadgcc-5e94175fa5906a1417a229fe9ec93faa10502583.zip
gcc-5e94175fa5906a1417a229fe9ec93faa10502583.tar.gz
gcc-5e94175fa5906a1417a229fe9ec93faa10502583.tar.bz2
basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
* basic-block.h (has_abnormal_outgoing_edge_p): Moved here from... * tree-inline.c (has_abnormal_outgoing_edge_p): Remove. * gimple-ssa-isolate-paths.c: Include tree-cfg.h. (find_implicit_erroneous_behaviour): If a block has abnormal outgoing edges, then ignore it. If the statement exhibiting erroneous behaviour ends basic blocks, with the exception of GIMPLE_RETURNs, then we can not optimize. (find_explicit_erroneous_behaviour): Likewise. From-SVN: r204821
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index fb9d2c4..1e1285a 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -4506,21 +4506,6 @@ fold_marked_statements (int first, struct pointer_set_t *statements)
}
}
-/* Return true if BB has at least one abnormal outgoing edge. */
-
-static inline bool
-has_abnormal_outgoing_edge_p (basic_block bb)
-{
- edge e;
- edge_iterator ei;
-
- FOR_EACH_EDGE (e, ei, bb->succs)
- if (e->flags & EDGE_ABNORMAL)
- return true;
-
- return false;
-}
-
/* Expand calls to inline functions in the body of FN. */
unsigned int