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:
Maxim Kuvyrkov
2025-12-15 16:36:10 +01:00
committed by Kyrylo Tkachov
parent 3dfd545671
commit 40d0f79577

View File

@@ -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);