diff options
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c index d37247f55b1..df86bb5965d 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -2585,7 +2585,13 @@ update_equiv_regs (void) rtx equiv_insn; if (! reg_equiv[regno].replace - || reg_equiv[regno].loop_depth < loop_depth) + || reg_equiv[regno].loop_depth < loop_depth + /* There is no sense to move insns if we did + register pressure-sensitive scheduling was + done because it will not improve allocation + but worsen insn schedule with a big + probability. */ + || (flag_sched_pressure && flag_schedule_insns)) continue; /* reg_equiv[REGNO].replace gets set only when |