This fixes an oversight that led to a compare-debug failure in the testsuite with the other changes applied. We really don't care if a DEBUG_INSN uses the iteration register or not.
Will commit soon as obvious. Bernd
* hw-doloop.c (scan_loop): Compute register usage only for non-debug insns. Index: hw-doloop.c =================================================================== --- hw-doloop.c (revision 178779) +++ hw-doloop.c (working copy) @@ -123,7 +123,7 @@ scan_loop (hwloop_info loop) df_ref *def_rec; HARD_REG_SET set_this_insn; - if (!INSN_P (insn)) + if (!NONDEBUG_INSN_P (insn)) continue; if (recog_memoized (insn) < 0