summaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
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/loop-unroll.c
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/loop-unroll.c')
-rw-r--r--gcc/loop-unroll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index 707ffff70b0..1821ea0c44f 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -189,7 +189,7 @@ static void apply_opt_in_copies (struct opt_info *, unsigned, bool, bool);
static void free_opt_info (struct opt_info *);
static struct var_to_expand *analyze_insn_to_expand_var (struct loop*, rtx);
static bool referenced_in_one_insn_in_loop_p (struct loop *, rtx, int *);
-static struct iv_to_split *analyze_iv_to_split_insn (rtx);
+static struct iv_to_split *analyze_iv_to_split_insn (rtx_insn *);
static void expand_var_during_unrolling (struct var_to_expand *, rtx);
static void insert_var_expansion_initialization (struct var_to_expand *,
basic_block);
@@ -1893,7 +1893,7 @@ analyze_insn_to_expand_var (struct loop *loop, rtx insn)
pointer to it. */
static struct iv_to_split *
-analyze_iv_to_split_insn (rtx insn)
+analyze_iv_to_split_insn (rtx_insn *insn)
{
rtx set, dest;
struct rtx_iv iv;
@@ -1952,7 +1952,7 @@ analyze_insns_in_loop (struct loop *loop)
basic_block *body, bb;
unsigned i;
struct opt_info *opt_info = XCNEW (struct opt_info);
- rtx insn;
+ rtx_insn *insn;
struct iv_to_split *ivts = NULL;
struct var_to_expand *ves = NULL;
iv_to_split **slot1;