On 08/03/2011 11:30 AM, Alexander Monakov wrote:
From: Sergey Grechanik<mouseent...@condor.intra.ispras.ru>
This patch fixes a problem when new jumps created in
sel_redirect_edge_and_branch_force could not get correct seqnos.
get_seqno_of_a_pred is renamed to get_seqno_for_a_jump.
Implementation-wise, it supports looking at multiple predecessors, and, if
that fails, also at successors. get_seqno_by_succs is implemented similar to
get_seqno_by_preds.
2011-08-04 Sergey Grechanik<mouseent...@ispras.ru>
* sel-sched-ir.c (get_seqno_of_a_pred): Rename to
get_seqno_for_a_jump. Update the caller.
(get_seqno_by_succs): New. Use it ...
(get_seqno_for_a_jump): ... here to find a seqno if looking at
predecessors was not sufficient.
(get_seqno_by_preds): Include head in iteration range, exclude insn.
Ok, thanks.