+2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
+
+ * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
+ instead of loop.
+
2010-02-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43017
static void
add_insn_allocno_copies (rtx insn)
{
- rtx set, operand, dup, link;
+ rtx set, operand, dup;
const char *str;
bool commut_p, bound_p[MAX_RECOG_OPERANDS];
int i, j, n, freq;
process_regs_for_copy (SET_DEST (set), SET_SRC (set), false, insn, freq);
return;
}
- for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
- if (REG_NOTE_KIND (link) == REG_DEAD)
- break;
- if (! link)
+ /* Fast check of possibility of constraint or shuffle copies. If
+ there are no dead registers, there will be no such copies. */
+ if (! find_reg_note (insn, REG_DEAD, NULL_RTX))
return;
extract_insn (insn);
for (i = 0; i < recog_data.n_operands; i++)