Commit b888a051 by Roman Zhuykov

loop-iv: make find_simple_exit static

Function 'find_simple_exit' is used only from loop-iv.c
In 2004-2006 it was also used in predict.c, but since r118694
(992c31e6) it does not.

gcc/ChangeLog:
	* loop-iv.c (find_simple_exit): Make it static.
	* cfgloop.h: Remove the corresponding prototype.
parent 90b5ebd7
2020-03-10 Roman Zhuykov <zhroma@ispras.ru> 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
* loop-iv.c (find_simple_exit): Make it static.
* cfgloop.h: Remove the corresponding prototype.
2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
* ddg.c (create_ddg): Fix intendation. * ddg.c (create_ddg): Fix intendation.
(set_recurrence_length): Likewise. (set_recurrence_length): Likewise.
(create_ddg_all_sccs): Likewise. (create_ddg_all_sccs): Likewise.
......
...@@ -499,7 +499,6 @@ extern bool iv_analyze_expr (rtx_insn *, scalar_int_mode, rtx, ...@@ -499,7 +499,6 @@ extern bool iv_analyze_expr (rtx_insn *, scalar_int_mode, rtx,
class rtx_iv *); class rtx_iv *);
extern rtx get_iv_value (class rtx_iv *, rtx); extern rtx get_iv_value (class rtx_iv *, rtx);
extern bool biv_p (rtx_insn *, scalar_int_mode, rtx); extern bool biv_p (rtx_insn *, scalar_int_mode, rtx);
extern void find_simple_exit (class loop *, class niter_desc *);
extern void iv_analysis_done (void); extern void iv_analysis_done (void);
extern class niter_desc *get_simple_loop_desc (class loop *loop); extern class niter_desc *get_simple_loop_desc (class loop *loop);
......
...@@ -2915,7 +2915,7 @@ check_simple_exit (class loop *loop, edge e, class niter_desc *desc) ...@@ -2915,7 +2915,7 @@ check_simple_exit (class loop *loop, edge e, class niter_desc *desc)
/* Finds a simple exit of LOOP and stores its description into DESC. */ /* Finds a simple exit of LOOP and stores its description into DESC. */
void static void
find_simple_exit (class loop *loop, class niter_desc *desc) find_simple_exit (class loop *loop, class niter_desc *desc)
{ {
unsigned i; unsigned i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment