Re: [PATCH] RISC-V: Do not delete fused vsetvl if it has uses [PR119115].

2025-03-11 Thread Jeff Law
On 3/7/25 4:05 AM, Robin Dapp wrote: Hi, in PR119115 we end up with an orphaned vsetvli    zero,t1,e16,m1,ta,ma. t1 originally came from another vsetvl that was fused from vsetvli    a4,a3,e8,mf2,ta,ma vsetvli    t1,a3,e8,mf2,ta,ma   (1) to vsetvli    zero,a3,e16,m1,ta,ma.

[PATCH] RISC-V: Do not delete fused vsetvl if it has uses [PR119115].

2025-03-07 Thread Robin Dapp
Hi, in PR119115 we end up with an orphaned vsetvli zero,t1,e16,m1,ta,ma. t1 originally came from another vsetvl that was fused from vsetvli a4,a3,e8,mf2,ta,ma vsetvli t1,a3,e8,mf2,ta,ma (1) to vsetvli zero,a3,e16,m1,ta,ma. This patch checks if t1, the VL operand