Re: [PATCH] RISC-V: Avoid updating vl right before branching on avl

2025-02-24 Thread Jeff Law
On 2/24/25 6:10 PM, Edwin Lu wrote: So I preferred the earlier approach of disabling speculation of the vsetvls, though I'm guessing you're looking at this approach because that was insufficient? I don't think that it was because it was insufficient, but that it might be too constraining. I

Re: [PATCH] RISC-V: Avoid updating vl right before branching on avl

2025-02-24 Thread Edwin Lu
On 2/24/2025 4:34 PM, Jeff Law wrote: On 2/24/25 5:07 PM, Edwin Lu wrote: See [1] thread for original patch which spawned this one. We are currently seeing the following code where we perform a vsetvl before a branching instruction against the avl. vsetvli a5,a1,e32,m1,tu,ma  

Re: [PATCH] RISC-V: Avoid updating vl right before branching on avl

2025-02-24 Thread Jeff Law
On 2/24/25 5:07 PM, Edwin Lu wrote: See [1] thread for original patch which spawned this one. We are currently seeing the following code where we perform a vsetvl before a branching instruction against the avl. vsetvli a5,a1,e32,m1,tu,ma vle32.v v2,0(a0) sub a1

Re: [PATCH] RISC-V: Avoid updating vl right before branching on avl

2025-02-24 Thread Vineet Gupta
On 2/24/25 16:07, Edwin Lu wrote: > See [1] thread for original patch which spawned this one. > > We are currently seeing the following code where we perform a vsetvl > before a branching instruction against the avl. > > vsetvli a5,a1,e32,m1,tu,ma > vle32.v v2,0(a0) > sub