While looking at PR124439 I noticed that we have unreachable code in
riscv_hard_regno_mode_ok. Right now we just return false for registers
that don't match one of the first four if conditions.
This patch just removes the else.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_hard_regno_mode_ok): Remove else.
else if (VTYPE_REG_P (regno) || VL_REG_P (regno) || VXRM_REG_P (regno)
|| FRM_REG_P (regno))
return true;
- else
- return false;
/* Require same callee-savedness for all registers. */
for (unsigned i = 1; i < nregs; i++)