Message ID | 4E3C2B59.60508@codesourcery.com |
---|---|
State | New |
Headers | show |
On 08/05/2011 10:41 AM, Bernd Schmidt wrote: > PR rtl-optimization/49900 > * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to > ensure basic blocks stay in the same order. Ok. r~
Index: gcc/sched-ebb.c =================================================================== --- gcc/sched-ebb.c (revision 176879) +++ gcc/sched-ebb.c (working copy) @@ -397,6 +397,9 @@ add_deps_for_risky_insns (rtx head, rtx bb = BLOCK_FOR_INSN (insn); bb->aux = last_block; last_block = bb; + /* Ensure blocks stay in the same order. */ + if (last_jump) + add_dependence (insn, last_jump, REG_DEP_ANTI); last_jump = insn; } else if (INSN_P (insn) && last_jump != NULL_RTX)