Skip to content

Commit fd6e819

Browse files
committed
fix for jira P10019563-81217
during scheduling (before ira/fusion/after ira) certain conditions that enable fusion (thus sequence ordering) take into account the presence of debug instructions. But debug instructions shouldnt influence instruction order.
1 parent 28fe99f commit fd6e819

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gcc/config/riscv/riscv.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10859,7 +10859,7 @@ riscv_sched_reorder2 (FILE *file ATTRIBUTE_UNUSED,
1085910859
if (NONDEBUG_INSN_P (ready[*n_readyp - i])
1086010860
&& !SCHED_GROUP_P (ready[*n_readyp - i])
1086110861
&& (!next_insn (ready[*n_readyp - i])
10862-
|| !NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i]))
10862+
// || !NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i]))
1086310863
|| !SCHED_GROUP_P (next_insn (ready[*n_readyp - i])))
1086410864
&& arcv_macro_fusion_pair_p (last_scheduled_insn, ready[*n_readyp - i]))
1086510865
{
@@ -10884,7 +10884,7 @@ riscv_sched_reorder2 (FILE *file ATTRIBUTE_UNUSED,
1088410884
if (NONDEBUG_INSN_P (ready[*n_readyp - i])
1088510885
&& !SCHED_GROUP_P (ready[*n_readyp - i])
1088610886
&& (!next_insn (ready[*n_readyp - i])
10887-
|| !NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i]))
10887+
//|| !NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i]))
1088810888
|| !SCHED_GROUP_P (next_insn (ready[*n_readyp - i])))
1088910889
&& arcv_macro_fusion_pair_p (last_scheduled_insn, ready[*n_readyp - i]))
1089010890
{
@@ -10926,7 +10926,7 @@ riscv_sched_reorder2 (FILE *file ATTRIBUTE_UNUSED,
1092610926
&& get_attr_type (ready[*n_readyp - i]) != TYPE_STORE
1092710927
&& !SCHED_GROUP_P (ready[*n_readyp - i])
1092810928
&& ((!next_insn (ready[*n_readyp - i])
10929-
|| !NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i]))
10929+
// || !NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i]))
1093010930
|| !SCHED_GROUP_P (next_insn (ready[*n_readyp - i])))))
1093110931
|| ((next_insn (ready[*n_readyp - i])
1093210932
&& NONDEBUG_INSN_P (next_insn (ready[*n_readyp - i]))

0 commit comments

Comments
 (0)