Skip to content

Commit 8c24bc5

Browse files
committed
arcv: simplify arcv_next_fusible_insn
The removed checks were impossible to trigger, !NONDEBUG_INSN_P checked that already. The early are moved forward because they were unreachable.
1 parent 9c40215 commit 8c24bc5

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

gcc/config/riscv/arcv.cc

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,13 @@ arcv_next_fusible_insn (rtx_insn *insn)
8787
if (insn == 0)
8888
break;
8989

90-
if (!NONDEBUG_INSN_P (insn))
91-
continue;
92-
93-
if (NOTE_INSN_BASIC_BLOCK_P (insn))
94-
return NULL;
90+
if (NOTE_INSN_BASIC_BLOCK_P (insn) || JUMP_TABLE_DATA_P (insn))
91+
return NULL;
9592

96-
if (GET_CODE (insn) == CODE_LABEL
97-
|| GET_CODE (insn) == BARRIER
98-
|| GET_CODE (PATTERN (insn)) == USE)
93+
if (!NONDEBUG_INSN_P (insn) || GET_CODE (PATTERN (insn)) == USE)
9994
continue;
10095

101-
if (JUMP_TABLE_DATA_P (insn))
102-
return NULL;
103-
104-
break;
96+
break;
10597
}
10698

10799
return insn;

0 commit comments

Comments
 (0)