aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2010-12-06 22:11:46 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2010-12-06 22:11:46 +0000
commit0cad482785359d4687af81f8c3b273c6837560aa (patch)
tree4308ebec609bad72b452a714a770499931e308e8 /gcc/ira.c
parent69a9720167ffd3c3ea66187f318f2efbe16e82c5 (diff)
downloadgcc-0cad482785359d4687af81f8c3b273c6837560aa.zip
gcc-0cad482785359d4687af81f8c3b273c6837560aa.tar.gz
gcc-0cad482785359d4687af81f8c3b273c6837560aa.tar.bz2
ira.c (update_equiv_regs): Prohibit move insns if pressure-sensitive scheduling was done.
2010-12-06 Vladimir Makarov <vmakarov@redhat.com> * ira.c (update_equiv_regs): Prohibit move insns if pressure-sensitive scheduling was done. From-SVN: r167519
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index d37247f..df86bb5 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