Re: Re: [PATCH] RISC-V: Add RVV mask logic auto-vectorization

2023-05-24 Thread juzhe.zh...@rivai.ai
Thanks kito., change it into define_insn_and_split send V2 soon. juzhe.zh...@rivai.ai From: Kito Cheng Date: 2023-05-24 15:18 To: juzhe.zhong CC: gcc-patches; kito.cheng; palmer; palmer; jeffreyalaw; rdapp.gcc Subject: Re: [PATCH] RISC-V: Add RVV mask logic auto-vectorization Just one comment

Re: [PATCH] RISC-V: Add RVV mask logic auto-vectorization

2023-05-24 Thread Kito Cheng via Gcc-patches
Just one comment: define_insn_and_split should be used in this scenario rather than define_insn_and_rewrite since you are not really rewriting. You can commit after updating to define_insn_and_split :) On Wed, May 24, 2023 at 3:04 PM wrote: > > From: Juzhe-Zhong > > This patch is adding mask lo

[PATCH] RISC-V: Add RVV mask logic auto-vectorization

2023-05-24 Thread juzhe . zhong
From: Juzhe-Zhong This patch is adding mask logic auto-vectorization. define the pattern as "define_insn_and_split" to allow combine PASS easily combine series instructions. For example: combine vmxor.mm + vmnot.m into vmxnor.mm Build success and regression PASS Ok for trunk ? gcc/ChangeLog: