+2017-06-28 Michael Collison <michael.collison@arm.com>
+
+ PR target/68535
+ * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
+ set of base_reg
+ (arm_gen_movmemqi): Removed unused variable 'i'.
+ Convert 'for' loop into 'while' loop.
+ (arm_expand_prologue): Remove last unnecessary set of insn.
+ (thumb_pop): Remove unused variable 'pushed_words'.
+ (thumb_exit): Remove last unnecessary set of regs_to_pop.
+
2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/predicates.md: Use s390_rel_address_ok_p.
emit_insn (gen_addsi3 (newbase, base_reg_rtx, GEN_INT (offset)));
offset = 0;
if (!TARGET_THUMB1)
- {
- base_reg = regs[0];
- base_reg_rtx = newbase;
- }
+ base_reg_rtx = newbase;
}
for (i = 0; i < nops; i++)
{
HOST_WIDE_INT in_words_to_go, out_words_to_go, last_bytes;
HOST_WIDE_INT srcoffset, dstoffset;
- int i;
rtx src, dst, srcbase, dstbase;
rtx part_bytes_reg = NULL;
rtx mem;
if (out_words_to_go != in_words_to_go && ((in_words_to_go - 1) & 3) != 0)
part_bytes_reg = gen_rtx_REG (SImode, (in_words_to_go - 1) & 3);
- for (i = 0; in_words_to_go >= 2; i+=4)
+ while (in_words_to_go >= 2)
{
if (in_words_to_go > 4)
emit_insn (arm_gen_load_multiple (arm_regs_in_sequence, 4, src,
will prevent the scheduler from moving stores to the frame
before the stack adjustment. */
if (frame_pointer_needed)
- insn = emit_insn (gen_stack_tie (stack_pointer_rtx,
- hard_frame_pointer_rtx));
+ emit_insn (gen_stack_tie (stack_pointer_rtx,
+ hard_frame_pointer_rtx));
}
{
int regno;
int lo_mask = mask & 0xFF;
- int pushed_words = 0;
gcc_assert (mask);
if ((lo_mask & ~1) != 0)
fprintf (f, ", ");
-
- pushed_words++;
}
}
move_to = number_of_first_bit_set (regs_to_pop);
asm_fprintf (f, "\tmov\t%r, %r\n", move_to, popped_into);
-
- regs_to_pop &= ~(1 << move_to);
-
--pops_needed;
}