OSDN Git Service

2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2010 22:11:46 +0000 (22:11 +0000)
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2010 22:11:46 +0000 (22:11 +0000)
* ira.c (update_equiv_regs): Prohibit move insns if
pressure-sensitive scheduling was done.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167519 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ira.c

index b6269f7..d996d26 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * ira.c (update_equiv_regs): Prohibit move insns if
+       pressure-sensitive scheduling was done.
+
 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
 
        * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
index d37247f..df86bb5 100644 (file)
--- 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