* haifa-sched.c (sched_init): Disable max_issue when scheduling for
register pressure.
From-SVN: r216623
+2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
+
+ * haifa-sched.c (sched_init): Disable max_issue when scheduling for
+ register pressure.
+
2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
* haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
else
issue_rate = 1;
- if (targetm.sched.first_cycle_multipass_dfa_lookahead)
+ if (targetm.sched.first_cycle_multipass_dfa_lookahead
+ /* Don't use max_issue with reg_pressure scheduling. Multipass
+ scheduling and reg_pressure scheduling undo each other's decisions. */
+ && sched_pressure == SCHED_PRESSURE_NONE)
dfa_lookahead = targetm.sched.first_cycle_multipass_dfa_lookahead ();
else
dfa_lookahead = 0;