Re: [PATCH] RISC-V: Add pattern for vector-scalar single-width floating-point sub

2025-09-06 Thread Jeff Law
On 9/5/25 6:38 AM, Paul-Antoine Arras wrote: This pattern enables the combine pass (or late-combine, depending on the case) to merge a vec_duplicate into a minus RTL instruction. The vec_duplicate is the subtrahend operand. Before this patch, we have two instructions, e.g.: vfmv.v.f

[PATCH] RISC-V: Add pattern for vector-scalar single-width floating-point sub

2025-09-05 Thread Paul-Antoine Arras
This pattern enables the combine pass (or late-combine, depending on the case) to merge a vec_duplicate into a minus RTL instruction. The vec_duplicate is the subtrahend operand. Before this patch, we have two instructions, e.g.: vfmv.v.f v2,fa0 vfsub.vv v1,v1,v2 After, we get onl