Commit 35c7a24d by Jim Wilson

(sched_analyze_2): Don't ignore USE insns when creating dependencies.

(sched_analyze): Likewise.

From-SVN: r4656
parent e0440838
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment