https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109104

Roger Sayle <roger at nextmovesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at nextmovesoftware dot 
com

--- Comment #1 from Roger Sayle <roger at nextmovesoftware dot com> ---
Not exactly my area of expertise, but adding

  if (!can_create_pseudo_p ())
    return false;

at the start of legitimize_move on line 262 of riscv-v.cc should help.
Other solutions include clearing a vector register without requiring
a scalar register (to set the vector length) by xoring it with itself,
or possibly providing a riscv backend target hook to override the default
default_zero_call_used_regs implementation.

If the vector length can be set to zero, that might be an alternative
to clearing call-used vector registers.

Reply via email to