From: David Malcolm Date: Thu, 21 Aug 2014 21:11:30 +0000 (+0000) Subject: cfgloopanal.c: Use rtx_insn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f75b71e6b25558fbf3a941c70c412ad8c98a82b;p=gcc.git cfgloopanal.c: Use rtx_insn gcc/ 2014-08-21 David Malcolm * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from rtx to rtx_insn *. (average_num_loop_insns): Likewise. (init_set_costs): Likewise for local "seq". (seq_cost): Likewise for param "seq", from const_rtx to const rtx_insn *. From-SVN: r214294 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d33cbe57b2..c9cea12d9ab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2014-08-21 David Malcolm + + * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from + rtx to rtx_insn *. + (average_num_loop_insns): Likewise. + (init_set_costs): Likewise for local "seq". + (seq_cost): Likewise for param "seq", from const_rtx to const + rtx_insn *. + 2014-08-21 David Malcolm * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from diff --git a/gcc/cfgloopanal.c b/gcc/cfgloopanal.c index e01b9ccbec4..7ea1a5f920f 100644 --- a/gcc/cfgloopanal.c +++ b/gcc/cfgloopanal.c @@ -174,7 +174,7 @@ num_loop_insns (const struct loop *loop) { basic_block *bbs, bb; unsigned i, ninsns = 0; - rtx insn; + rtx_insn *insn; bbs = get_loop_body (loop); for (i = 0; i < loop->num_nodes; i++) @@ -198,7 +198,7 @@ average_num_loop_insns (const struct loop *loop) { basic_block *bbs, bb; unsigned i, binsns, ninsns, ratio; - rtx insn; + rtx_insn *insn; ninsns = 0; bbs = get_loop_body (loop); @@ -305,7 +305,7 @@ get_loop_level (const struct loop *loop) /* Returns estimate on cost of computing SEQ. */ static unsigned -seq_cost (const_rtx seq, bool speed) +seq_cost (const rtx_insn *seq, bool speed) { unsigned cost = 0; rtx set; @@ -328,7 +328,7 @@ void init_set_costs (void) { int speed; - rtx seq; + rtx_insn *seq; rtx reg1 = gen_raw_REG (SImode, FIRST_PSEUDO_REGISTER); rtx reg2 = gen_raw_REG (SImode, FIRST_PSEUDO_REGISTER + 1); rtx addr = gen_raw_REG (Pmode, FIRST_PSEUDO_REGISTER + 2);