(sched_analyze_2): Don't ignore USE insns when creating dependencies.
(sched_analyze): Likewise. From-SVN: r4656
This commit is contained in:
parent
e04408387a
commit
35c7a24d64
12
gcc/sched.c
12
gcc/sched.c
@ -1881,11 +1881,9 @@ sched_analyze_2 (x, insn)
|
||||
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
|
||||
{
|
||||
for (u = reg_last_uses[i]; u; u = XEXP (u, 1))
|
||||
if (GET_CODE (PATTERN (XEXP (u, 0))) != USE)
|
||||
add_dependence (insn, XEXP (u, 0), REG_DEP_ANTI);
|
||||
add_dependence (insn, XEXP (u, 0), REG_DEP_ANTI);
|
||||
reg_last_uses[i] = 0;
|
||||
if (reg_last_sets[i]
|
||||
&& GET_CODE (PATTERN (reg_last_sets[i])) != USE)
|
||||
if (reg_last_sets[i])
|
||||
add_dependence (insn, reg_last_sets[i], 0);
|
||||
reg_last_sets[i] = insn;
|
||||
}
|
||||
@ -2026,11 +2024,9 @@ sched_analyze (head, tail)
|
||||
if (call_used_regs[i] || global_regs[i])
|
||||
{
|
||||
for (u = reg_last_uses[i]; u; u = XEXP (u, 1))
|
||||
if (GET_CODE (PATTERN (XEXP (u, 0))) != USE)
|
||||
add_dependence (insn, XEXP (u, 0), REG_DEP_ANTI);
|
||||
add_dependence (insn, XEXP (u, 0), REG_DEP_ANTI);
|
||||
reg_last_uses[i] = 0;
|
||||
if (reg_last_sets[i]
|
||||
&& GET_CODE (PATTERN (reg_last_sets[i])) != USE)
|
||||
if (reg_last_sets[i])
|
||||
add_dependence (insn, reg_last_sets[i], REG_DEP_ANTI);
|
||||
reg_last_sets[i] = insn;
|
||||
/* Insn, being a CALL_INSN, magically depends on
|
||||
|
Loading…
Reference in New Issue
Block a user