Commit 9916d7ea by Jie Zhang Committed by Jie Zhang

re PR target/49862 (bfin.c warnings)

	PR target/49862
	* config/bfin/bfin.c (hwloop_optimize): Fix unused variable
	warnings.
	(hwloop_pattern_reg): Fix set but not used warning.
	(bfin_reorg_loops): Remove unused parameter.
	(bfin_reorg): Update use of bfin_reorg_loops.

From-SVN: r185125
parent 060b4284
2012-03-08 Jie Zhang <jzhang918@gmail.com>
PR target/49862
* config/bfin/bfin.c (hwloop_optimize): Fix unused variable
warnings.
(hwloop_pattern_reg): Fix set but not used warning.
(bfin_reorg_loops): Remove unused parameter.
(bfin_reorg): Update use of bfin_reorg_loops.
2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
......
......@@ -3411,14 +3411,12 @@ static bool
hwloop_optimize (hwloop_info loop)
{
basic_block bb;
hwloop_info inner;
rtx insn, last_insn;
rtx loop_init, start_label, end_label;
rtx iter_reg, scratchreg, scratch_init, scratch_init_insn;
rtx lc_reg, lt_reg, lb_reg;
rtx seq, seq_end;
int length;
unsigned ix;
bool clobber0, clobber1;
if (loop->depth > MAX_LOOP_DEPTH)
......@@ -3840,12 +3838,11 @@ hwloop_fail (hwloop_info loop)
static rtx
hwloop_pattern_reg (rtx insn)
{
rtx pat, reg;
rtx reg;
if (!JUMP_P (insn) || recog_memoized (insn) != CODE_FOR_loop_end)
return NULL_RTX;
pat = PATTERN (insn);
reg = SET_DEST (XVECEXP (PATTERN (insn), 0, 1));
if (!REG_P (reg))
return NULL_RTX;
......@@ -3864,7 +3861,7 @@ static struct hw_doloop_hooks bfin_doloop_hooks =
hardware loops are generated. */
static void
bfin_reorg_loops (FILE *dump_file)
bfin_reorg_loops (void)
{
reorg_loops (true, &bfin_doloop_hooks);
}
......@@ -4601,7 +4598,7 @@ bfin_reorg (void)
/* Doloop optimization */
if (cfun->machine->has_hardware_loops)
bfin_reorg_loops (dump_file);
bfin_reorg_loops ();
workaround_speculation ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment