OSDN Git Service

* config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
authorpthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Sep 2009 18:58:56 +0000 (18:58 +0000)
committerpthaugen <pthaugen@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Sep 2009 18:58:56 +0000 (18:58 +0000)
        restrict issue_rate in first pass when scheduling for register
        pressure.

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

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index ac2045b..197cec1 100644 (file)
@@ -1,3 +1,9 @@
+2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
+
+       * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
+       restrict issue_rate in first pass when scheduling for register
+       pressure.
+
 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
             Rafael Avila de Espindola  <espindola@google.com>
 
index 2de4ffa..cafe2b3 100644 (file)
@@ -21760,8 +21760,9 @@ is_nonpipeline_insn (rtx insn)
 static int
 rs6000_issue_rate (void)
 {
-  /* Use issue rate of 1 for first scheduling pass to decrease degradation.  */
-  if (!reload_completed)
+  /* Unless scheduling for register pressure, use issue rate of 1 for
+     first scheduling pass to decrease degradation.  */
+  if (!reload_completed && !flag_sched_pressure)
     return 1;
 
   switch (rs6000_cpu_attr) {