On 3/14/23 15:52, Michael Collison wrote:
While working on autovectorizing for the RISCV port I encountered an issue
where can_duplicate_and_interleave_p assumes that GET_MODE_NUNITS is a
evenly divisible by two. The RISC-V target has vector modes (e.g. VNx1DImode),
where GET_MODE_NUNITS is equal to one.

Tested on RISCV and x86_64-linux-gnu. Okay?

2023-03-09  Michael Collison  <colli...@rivosinc.com>

        * tree-vect-slp.cc (can_duplicate_and_interleave_p):
        Check that GET_MODE_NUNITS is greater than one.
Is this still relevant? I know other changes were made to deal with the case where GET_MODE_NUNITS returns 1, but I don't know if they made this obsolete.

Any chance we could get a testcase for this? I realize it might depend on unmerged RVV bits.


jeff

Reply via email to