diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-22 18:12:28 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-22 18:12:28 +0000 |
commit | 1b20d55a519f0e8ad7fcdc071f453c647bfceb9b (patch) | |
tree | b829f3eb94775bdb055fb9b037e1c8d49a4a4825 /gcc/loop-unroll.c | |
parent | 89bfd6f5c8fb65df258f063e6a81926625217c97 (diff) | |
download | gcc-1b20d55a519f0e8ad7fcdc071f453c647bfceb9b.zip gcc-1b20d55a519f0e8ad7fcdc071f453c647bfceb9b.tar.gz gcc-1b20d55a519f0e8ad7fcdc071f453c647bfceb9b.tar.bz2 |
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".
From-SVN: r214344
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r-- | gcc/loop-unroll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c index 707ffff..1821ea0 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; |