[PATCH] RISC-V: Improve slide patterns recognition

2025-09-20 Thread Raphael Moreira Zinsly
Improve shuffle_slide_patterns to better recognize permutations that can be constructed by a slideup or slidedown, covering more cases: Slideup one vector into the middle the other like {0, 4, 5, 3}. Slidedown one vector not ending in the last element like {5, 6, 2, 3}. Slidedown one vector fro

Re: [PATCH v2] RISC-V: Improve slide patterns recognition

2025-09-20 Thread Raphael Zinsly
On Tue, Sep 16, 2025 at 12:39 PM Jeff Law wrote: > just a follow-up. rv32 passes with this version in my tester. > > Given Juzhe has acked and Robin reviewed it internally. I think this is > good to go once pre-commit CI is done. > Jeff Thanks, pushed as b71ff5184a6216bfc997ada706c89b2f585a7e66

Re: RISC-V: Improve slide patterns recognition

2025-09-20 Thread Raphael Zinsly
On Sun, Sep 14, 2025 at 11:12 PM 钟居哲 wrote: > > +/* Recognize patterns like [4 5 6 7 12 13 14 15] where a consecutive part of > a > + vector is combined into another. */ > > > Is it better to use vcompress to combine such pattern ? > > [4 5 6 7 x x x x] > [x x x x 12 13 14 15] > combine them u

Re: [PATCH v2] RISC-V: Improve slide patterns recognition

2025-09-16 Thread Jeff Law
On 9/16/25 08:21, Raphael Moreira Zinsly wrote: Changes since v1: - Fixed permutations with two pivots and repeated elements. -- >8 -- Improve shuffle_slide_patterns to better recognize permutations that can be constructed by a slideup or slidedown, covering more cases: Slideup one v

[PATCH v2] RISC-V: Improve slide patterns recognition

2025-09-16 Thread Raphael Moreira Zinsly
Changes since v1: - Fixed permutations with two pivots and repeated elements. -- >8 -- Improve shuffle_slide_patterns to better recognize permutations that can be constructed by a slideup or slidedown, covering more cases: Slideup one vector into the middle the other like {0, 4, 5, 3}.

Re: Re: RISC-V: Improve slide patterns recognition

2025-09-16 Thread 钟居哲
OK juzhe.zh...@rivai.ai From: Raphael Zinsly Date: 2025-09-16 02:34 To: 钟居哲 CC: gcc-patches; kito.cheng; Robin Dapp; jeffreyalaw Subject: Re: RISC-V: Improve slide patterns recognition On Sun, Sep 14, 2025 at 11:12 PM 钟居哲 wrote: > > +/* Recognize patterns like [4 5 6 7 12 13 14 15] w

RISC-V: Improve slide patterns recognition

2025-09-14 Thread 钟居哲
+/* Recognize patterns like [4 5 6 7 12 13 14 15] where a consecutive part of a + vector is combined into another. */ Is it better to use vcompress to combine such pattern ? [4 5 6 7 x x x x] [x x x x 12 13 14 15] combine them use a single vcompress.vvm instruction ? juzhe.zh...@rivai.ai

Re: [PATCH] RISC-V: Improve slide patterns recognition

2025-09-13 Thread Jeff Law
On 9/12/25 3:35 PM, Raphael Moreira Zinsly wrote: Improve shuffle_slide_patterns to better recognize permutations that can be constructed by a slideup or slidedown, covering more cases: Slideup one vector into the middle the other like {0, 4, 5, 3}. Slidedown one vector not ending in the la