diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-10-27 12:33:22 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-10-27 12:33:22 +0000 |
commit | ed80f8590c13ae01cece8759f2842fcd7410135c (patch) | |
tree | 8fa936e011a25543ed4f351298fe8a3fc5786687 /gcc | |
parent | 362235e98342824833da5ea37af0878ee2eb41cd (diff) | |
download | gcc-ed80f8590c13ae01cece8759f2842fcd7410135c.zip gcc-ed80f8590c13ae01cece8759f2842fcd7410135c.tar.gz gcc-ed80f8590c13ae01cece8759f2842fcd7410135c.tar.bz2 |
c6x.c (unit_req_imbalance, res_mii): Cast the first arg to unit_req_factor to the right enum type.
* config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
to unit_req_factor to the right enum type.
(get_unit_operand_masks, reshuffle_units, try_rename_operands,
hwloop_optimize): Remove unused variables.
From-SVN: r180565
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/c6x/c6x.c | 18 |
2 files changed, 12 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe6f88b..7a31a55 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-10-27 Bernd Schmidt <bernds@codesourcery.com> + + * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg + to unit_req_factor to the right enum type. + (get_unit_operand_masks, reshuffle_units, try_rename_operands, + hwloop_optimize): Remove unused variables. + 2010-10-27 Richard Guenther <rguenther@suse.de> PR middle-end/50731 diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c index b9b9370..c128890 100644 --- a/gcc/config/c6x/c6x.c +++ b/gcc/config/c6x/c6x.c @@ -3325,7 +3325,7 @@ unit_req_imbalance (unit_req_table reqs) for (i = 0; i < UNIT_REQ_MAX; i++) { - int factor = unit_req_factor (i); + int factor = unit_req_factor ((enum unitreqs) i); int diff = abs (reqs[0][i] - reqs[1][i]); val += (diff + factor - 1) / factor / 2; } @@ -3343,7 +3343,7 @@ res_mii (unit_req_table reqs) for (side = 0; side < 2; side++) for (req = 0; req < UNIT_REQ_MAX; req++) { - int factor = unit_req_factor (req); + int factor = unit_req_factor ((enum unitreqs) req); worst = MAX ((reqs[side][UNIT_REQ_D] + factor - 1) / factor, worst); } @@ -3357,8 +3357,6 @@ res_mii (unit_req_table reqs) static bool get_unit_operand_masks (rtx insn, unsigned int *pmask1, unsigned int *pmask2) { - enum attr_units units; - enum attr_type type; enum attr_op_pattern op_pat; if (recog_memoized (insn) < 0) @@ -3417,7 +3415,6 @@ try_rename_operands (rtx head, rtx tail, unit_req_table reqs, rtx insn, { enum reg_class super_class = orig_side == 0 ? B_REGS : A_REGS; HARD_REG_SET unavailable; - unit_req_table new_unit_reqs; du_head_p this_head; struct du_chain *chain; int i; @@ -3520,11 +3517,9 @@ reshuffle_units (basic_block loop) rtx head = BB_HEAD (loop); rtx tail = BB_END (loop); rtx insn; - int side; unit_req_table reqs; edge e; edge_iterator ei; - basic_block first = NULL; bitmap_head bbs; count_unit_reqs (reqs, head, PREV_INSN (tail)); @@ -3535,17 +3530,14 @@ reshuffle_units (basic_block loop) bitmap_initialize (&bbs, &bitmap_default_obstack); FOR_EACH_EDGE (e, ei, loop->preds) - { - bitmap_set_bit (&bbs, e->src->index); - first = e->src; - } + bitmap_set_bit (&bbs, e->src->index); + bitmap_set_bit (&bbs, loop->index); regrename_analyze (&bbs); for (insn = head; insn != NEXT_INSN (tail); insn = NEXT_INSN (insn)) { enum attr_units units; - enum attr_cross cross; int count, side1, side2, req1, req2; unsigned int mask1, mask2; insn_rr_info *info; @@ -5507,7 +5499,7 @@ hwloop_optimize (hwloop_info loop) basic_block entry_bb, bb; rtx seq, insn, prev, entry_after, end_packet; rtx head_insn, tail_insn, new_insns, last_insn; - int loop_earliest, entry_earliest, entry_end_cycle; + int loop_earliest; int n_execute_packets; edge entry_edge; unsigned ix; |