From: Matthew Fortune <matthew.fort...@imgtec.com> Unconditionally set DONT_BREAK_DEPENDENCIES in scheduling flags.
The code to break dependencies does not appear to provide a win under any circumstance and is often harmful. Disable it completely pending further investigation. gcc/ * config/mips/mips.cc (mips_set_sched_flags): Set DONT_BREAK_DEPENDENCIES unconditionally. Cherry-picked f732af3ad1a393d2f2e708f0d7c469a093049d01 from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune <matthew.fort...@imgtec.com> Signed-off-by: Faraz Shahbazker <fshahbaz...@wavecomp.com> Signed-off-by: Aleksandar Rakic <aleksandar.ra...@htecgroup.com> --- gcc/config/mips/mips.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 55339d577fb..508435cc9eb 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc @@ -16872,11 +16872,8 @@ mips_evaluation_hook (rtx_insn *head, rtx_insn *tail) static void mips_set_sched_flags (spec_info_t spec_info ATTRIBUTE_UNUSED) { - if (!reload_completed && TARGET_SCHED_WEIGHT) - { - unsigned int *flags = &(current_sched_info->flags); - *flags |= DONT_BREAK_DEPENDENCIES; - } + unsigned int *flags = &(current_sched_info->flags); + *flags |= DONT_BREAK_DEPENDENCIES; } static void -- 2.34.1