diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 21:11:30 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 21:11:30 +0000 |
commit | 2b422a4fa4b27a294000aff0f7439d288ec35269 (patch) | |
tree | 87d7e09635da3e14dcd0422dfd8f78f9213db6f4 /gcc/cfgloopanal.c | |
parent | cb534875a2ec883df48f339dfe8ddb063ceabc2b (diff) | |
download | gcc-2b422a4fa4b27a294000aff0f7439d288ec35269.tar.gz |
cfgloopanal.c: Use rtx_insn
gcc/
2014-08-21 David Malcolm <dmalcolm@redhat.com>
* 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 *.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214294 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloopanal.c')
-rw-r--r-- | gcc/cfgloopanal.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); |