* config/c6x/c6x.c (hwloop_optimize): Handle case where the old
iteration reg is used after the loop.
From-SVN: r246160
+2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
+
+ * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
+ iteration reg is used after the loop.
+
2017-03-14 Martin Sebor <msebor@redhat.com>
PR tree-optimization/79800
start_sequence ();
insn = emit_insn (gen_mvilc (loop->iter_reg));
+ if (loop->iter_reg_used_outside)
+ insn = emit_move_insn (loop->iter_reg, const0_rtx);
insn = emit_insn (gen_sploop (GEN_INT (sp_ii)));
-
seq = get_insns ();
if (!single_succ_p (entry_bb) || vec_safe_length (loop->incoming) > 1)