RISC-V: Add check for types without insn reservations
Now that all insns are guaranteed to have a type, ensure every insn is associated with a cpu unit/insn reservation. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_sched_variable_issue): add disabled assert Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
This commit is contained in:
parent
7c1d011bc1
commit
a29ce9bf8d
1 changed files with 6 additions and 0 deletions
|
@ -7751,6 +7751,12 @@ riscv_sched_variable_issue (FILE *, int, rtx_insn *insn, int more)
|
|||
an assert so we can find and fix this problem. */
|
||||
gcc_assert (get_attr_type (insn) != TYPE_UNKNOWN);
|
||||
|
||||
/* If we ever encounter an insn without an insn reservation, trip
|
||||
an assert so we can find and fix this problem. */
|
||||
#if 0
|
||||
gcc_assert (insn_has_dfa_reservation_p (insn));
|
||||
#endif
|
||||
|
||||
return more - 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue