diff mbox series

[RFC,4/5] Change iv_analyze_result to take const_rtx.

Message ID CAELXzTORnQnayWKb2LBWctKdeTDdrdECnVqZSzSDdZ-OZr3EmA@mail.gmail.com
State New
Headers show
Series Loop unrolling and memory load streams | expand

Commit Message

Kugan Vivekanandarajah Sept. 15, 2017, 1:31 a.m. UTC
Change iv_analyze_result to take const_rtx. This is just to make the
next patch compile. No functional changes:

Thanks,
Kugan

gcc/ChangeLog:

2017-09-12  Kugan Vivekanandarajah  <kuganv@linaro.org>

    * cfgloop.h (iv_analyze_result): Change 2nd param from rtx to
      const_rtx.
    * df-core.c (df_find_def): Likewise.
    * df.h (df_find_def): Likewise.
    * loop-iv.c (iv_analyze_result): Likewise.

Comments

Richard Biener Sept. 15, 2017, 9:32 a.m. UTC | #1
On Fri, Sep 15, 2017 at 3:31 AM, Kugan Vivekanandarajah
<kugan.vivekanandarajah@linaro.org> wrote:
> Change iv_analyze_result to take const_rtx. This is just to make the

> next patch compile. No functional changes:


Ok.

Richard.

> Thanks,

> Kugan

>

> gcc/ChangeLog:

>

> 2017-09-12  Kugan Vivekanandarajah  <kuganv@linaro.org>

>

>     * cfgloop.h (iv_analyze_result): Change 2nd param from rtx to

>       const_rtx.

>     * df-core.c (df_find_def): Likewise.

>     * df.h (df_find_def): Likewise.

>     * loop-iv.c (iv_analyze_result): Likewise.
diff mbox series

Patch

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(-)

diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h
index e7ffa23..2308e7a 100644
--- a/gcc/cfgloop.h
+++ b/gcc/cfgloop.h
@@ -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);
diff --git a/gcc/df-core.c b/gcc/df-core.c
index 1e84d4d..ecb6b15 100644
--- a/gcc/df-core.c
+++ b/gcc/df-core.c
@@ -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;
 
diff --git a/gcc/df.h b/gcc/df.h
index 07fd334..8861cc9 100644
--- a/gcc/df.h
+++ b/gcc/df.h
@@ -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);
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c
index 896fe0b1..745b613 100644
--- a/gcc/loop-iv.c
+++ b/gcc/loop-iv.c
@@ -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