Re: Re: [PATCH V11] VECT: Add decrement IV support in Loop Vectorizer

2023-05-22 Thread juzhe.zh...@rivai.ai
>> Not sure if you've covered this already in another thread but IIRC >> RVV uses "with-len" not only for loads and stores but for arithmetic >> instructions as well which is where (3) fails. Fortunately RVV uses >> element counts(?) Yes, RVV uses element count. But I did discover we have bugs f

Re: Re: [PATCH V11] VECT: Add decrement IV support in Loop Vectorizer

2023-05-19 Thread juzhe.zh...@rivai.ai
Hi, Richard. Thanks for the comments. Would you mind telling me whether it is possible that we can make decrement IV support into GCC middle-end ? If yes, could you tell what I should do next for the patches since I am confused that it seems the implementation of this patch should totally be ab

Re: Re: [PATCH V11] VECT: Add decrement IV support in Loop Vectorizer

2023-05-19 Thread juzhe.zh...@rivai.ai
>> I don't think this is a property of decrementing IVs. IIUC it's really >> a property of rgl->factor == 1 && factor == 1, where factor would need >> to be passed in by the caller. Because of that, it should probably be >> a separate patch. Is it right that I just post this part code as a sepera