summaryrefslogtreecommitdiff
path: root/gcc/cfgloop.h
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-22 18:12:28 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-22 18:12:28 +0000
commit3eeb4f9ab7055b331483f5e52b9a6d73268e41dd (patch)
treeb829f3eb94775bdb055fb9b037e1c8d49a4a4825 /gcc/cfgloop.h
parentff395cd99b275350aab515d8d010b3c699d2d234 (diff)
downloadgcc-3eeb4f9ab7055b331483f5e52b9a6d73268e41dd.tar.gz
loop-iv.c: Use rtx_insn (also touches cfgloop.h and loop-unroll.c)
gcc/ * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to rtx_insn *. (iv_analyze_result): Likewise. (iv_analyze_expr): Likewise. (biv_p): Likewise. * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and local "def_insn" from rtx to rtx_insn *. (get_biv_step_1): Likewise for local "insn". (iv_analyze_expr): Likewise for param "insn". (iv_analyze_def): Likewise for local "insn". (iv_analyze_op): Likewise for param "insn". (iv_analyze): Likewise. (iv_analyze_result): Likewise. (biv_p): Likewise. (suitable_set_for_replacement): Likewise. (simplify_using_initial_values): Likewise for local "insn". (iv_number_of_iterations): Likewise for param "insn". (check_simple_exit): Add checked cast to rtx_insn when invoking iv_number_of_iterations for now (until get_condition is strengthened). * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param "insn" from rtx to rtx_insn *. (analyze_insns_in_loop): Likewise for local "insn". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r--gcc/cfgloop.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h
index 7d2c1de219d..b7f5d2a22a6 100644
--- a/gcc/cfgloop.h
+++ b/gcc/cfgloop.h
@@ -423,11 +423,12 @@ struct GTY(()) niter_desc
};
extern void iv_analysis_loop_init (struct loop *);
-extern bool iv_analyze (rtx, rtx, struct rtx_iv *);
-extern bool iv_analyze_result (rtx, rtx, struct rtx_iv *);
-extern bool iv_analyze_expr (rtx, rtx, enum machine_mode, struct rtx_iv *);
+extern bool iv_analyze (rtx_insn *, rtx, struct rtx_iv *);
+extern bool iv_analyze_result (rtx_insn *, rtx, struct rtx_iv *);
+extern bool iv_analyze_expr (rtx_insn *, rtx, enum machine_mode,
+ struct rtx_iv *);
extern rtx get_iv_value (struct rtx_iv *, rtx);
-extern bool biv_p (rtx, rtx);
+extern bool biv_p (rtx_insn *, rtx);
extern void find_simple_exit (struct loop *, struct niter_desc *);
extern void iv_analysis_done (void);