sched-deps.c (sched_analyze_insn): Make sure to add insn to reg_last->sets after flushing the dependency lists to...
* sched-deps.c (sched_analyze_insn): Make sure to add insn to reg_last->sets after flushing the dependency lists to guarantee that subsequent clobbers will be dependent on it. From-SVN: r56929
This commit is contained in:
parent
ad9df12ff5
commit
b96a3fa397
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-09-07 Glen Nakamura <glen@imodulo.com>
|
||||
|
||||
* sched-deps.c (sched_analyze_insn): Make sure to add insn
|
||||
to reg_last->sets after flushing the dependency lists to guarantee
|
||||
that subsequent clobbers will be dependent on it.
|
||||
|
||||
2002-09-07 Igor Shevlyakov <igor@microunity.com>
|
||||
|
||||
* combine.c (simplify_shift_const): Calculate rotate count
|
||||
|
|
|
@ -1117,8 +1117,6 @@ sched_analyze_insn (deps, x, insn, loop_notes)
|
|||
EXECUTE_IF_SET_IN_REG_SET (reg_pending_clobbers, 0, i,
|
||||
{
|
||||
struct deps_reg *reg_last = &deps->reg_last[i];
|
||||
add_dependence_list (insn, reg_last->sets, REG_DEP_OUTPUT);
|
||||
add_dependence_list (insn, reg_last->uses, REG_DEP_ANTI);
|
||||
if (reg_last->uses_length > MAX_PENDING_LIST_LENGTH
|
||||
|| reg_last->clobbers_length > MAX_PENDING_LIST_LENGTH)
|
||||
{
|
||||
|
@ -1128,6 +1126,7 @@ sched_analyze_insn (deps, x, insn, loop_notes)
|
|||
REG_DEP_ANTI);
|
||||
add_dependence_list_and_free (insn, ®_last->clobbers,
|
||||
REG_DEP_OUTPUT);
|
||||
reg_last->sets = alloc_INSN_LIST (insn, reg_last->sets);
|
||||
reg_last->clobbers_length = 0;
|
||||
reg_last->uses_length = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue