aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2006-01-28 14:58:26 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2006-01-28 14:58:26 +0000
commitb214288dab424519b0ab2ad29ca67eeaf5051e70 (patch)
tree49e01201101239f3d1d3226b12873a5f846459d4
parent17a4fdaa76810e0928f34fed978fd001e91655a0 (diff)
downloadgcc-b214288dab424519b0ab2ad29ca67eeaf5051e70.zip
gcc-b214288dab424519b0ab2ad29ca67eeaf5051e70.tar.gz
gcc-b214288dab424519b0ab2ad29ca67eeaf5051e70.tar.bz2
cfgloop.c (flow_loop_outside_edge_p): Remove.
* cfgloop.c (flow_loop_outside_edge_p): Remove. * cfgloop.h: Remove the prototype for flow_loop_outside_edge_p. From-SVN: r110325
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cfgloop.c9
-rw-r--r--gcc/cfgloop.h1
3 files changed, 4 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 240b380..bbd1150 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -7,6 +7,10 @@
* cfgloopmanip.c (split_loop_bb): Remove.
* cfgloop.h: Remove the prototype for split_loop_bb.
+ * cfgloop.c (flow_loop_outside_edge_p): Remove.
+ * cfgloop.h: Remove the prototype for
+ flow_loop_outside_edge_p.
+
2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
* df-scan.c (df_record_entry_block_defs): Check if
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index 7629c91..b9f48b6 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -771,15 +771,6 @@ flow_bb_inside_loop_p (const struct loop *loop, const basic_block bb)
return loop == source_loop || flow_loop_nested_p (loop, source_loop);
}
-/* Return nonzero if edge E enters header of LOOP from outside of LOOP. */
-
-bool
-flow_loop_outside_edge_p (const struct loop *loop, edge e)
-{
- gcc_assert (e->dest == loop->header);
- return !flow_bb_inside_loop_p (loop, e->src);
-}
-
/* Enumeration predicate for get_loop_body. */
static bool
glb_enum_p (basic_block bb, void *glb_header)
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h
index 785fef1..5bbde8b 100644
--- a/gcc/cfgloop.h
+++ b/gcc/cfgloop.h
@@ -245,7 +245,6 @@ extern void create_loop_notes (void);
/* Loop data structure manipulation/querying. */
extern void flow_loop_tree_node_add (struct loop *, struct loop *);
extern void flow_loop_tree_node_remove (struct loop *);
-extern bool flow_loop_outside_edge_p (const struct loop *, edge);
extern bool flow_loop_nested_p (const struct loop *, const struct loop *);
extern bool flow_bb_inside_loop_p (const struct loop *, const basic_block);
extern struct loop * find_common_loop (struct loop *, struct loop *);