mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
Haifa scheduler: Prevent splitting of fusion pairs in dispatch scheduling
gcc/Changelog * haifa-sched.cc (choose_ready): Don't require dfa_lookahead <= 0 to schedule SCHED_GROUP_P insns first.
This commit is contained in:
committed by
Kyrylo Tkachov
parent
3dfd545671
commit
40d0f79577
@@ -6132,8 +6132,13 @@ choose_ready (struct ready_list *ready, bool first_cycle_insn_p,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (dfa_lookahead <= 0 || SCHED_GROUP_P (ready_element (ready, 0))
|
||||
if (SCHED_GROUP_P (ready_element (ready, 0))
|
||||
|| DEBUG_INSN_P (ready_element (ready, 0)))
|
||||
{
|
||||
*insn_ptr = ready_remove_first (ready);
|
||||
return 0;
|
||||
}
|
||||
else if (dfa_lookahead <= 0)
|
||||
{
|
||||
if (targetm.sched.dispatch (NULL, IS_DISPATCH_ON))
|
||||
*insn_ptr = ready_remove_first_dispatch (ready);
|
||||
|
||||
Reference in New Issue
Block a user