From 5d50c51c520d881104d44603514088a19e14e652 Mon Sep 17 00:00:00 2001
From: Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
Date: Fri, 25 Aug 2017 10:49:50 +1000
Subject: [PATCH 4/5] Change iv_analyze_result to take const_rtx
---
gcc/cfgloop.h | 2 +-
gcc/df-core.c | 2 +-
gcc/df.h | 2 +-
gcc/loop-iv.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
@@ -473,7 +473,7 @@ struct GTY(()) niter_desc
extern void iv_analysis_loop_init (struct loop *);
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_result (rtx_insn *, const_rtx, struct rtx_iv *);
extern bool iv_analyze_expr (rtx_insn *, rtx, machine_mode,
struct rtx_iv *);
extern rtx get_iv_value (struct rtx_iv *, rtx);
@@ -1951,7 +1951,7 @@ df_bb_regno_last_def_find (basic_block bb, unsigned int regno)
DF is the dataflow object. */
df_ref
-df_find_def (rtx_insn *insn, rtx reg)
+df_find_def (rtx_insn *insn, const_rtx reg)
{
df_ref def;
@@ -979,7 +979,7 @@ extern void df_check_cfg_clean (void);
#endif
extern df_ref df_bb_regno_first_def_find (basic_block, unsigned int);
extern df_ref df_bb_regno_last_def_find (basic_block, unsigned int);
-extern df_ref df_find_def (rtx_insn *, rtx);
+extern df_ref df_find_def (rtx_insn *, const_rtx);
extern bool df_reg_defined (rtx_insn *, rtx);
extern df_ref df_find_use (rtx_insn *, rtx);
extern bool df_reg_used (rtx_insn *, rtx);
@@ -1198,7 +1198,7 @@ iv_analyze (rtx_insn *insn, rtx val, struct rtx_iv *iv)
/* Analyzes definition of DEF in INSN and stores the result to IV. */
bool
-iv_analyze_result (rtx_insn *insn, rtx def, struct rtx_iv *iv)
+iv_analyze_result (rtx_insn *insn, const_rtx def, struct rtx_iv *iv)
{
df_ref adef;
--
2.7.4