RE: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization

2023-04-19 Thread Li, Pan2 via Gcc-patches
...@sifive.com; richard.sandif...@arm.com; Wang, Yanzhang Subject: RE: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization On Wed, 19 Apr 2023, Li, Pan2 wrote: > Hi Richard, > > Do you have any idea about this? I leverage git gcc-commit-mklog, it > will generate something

RE: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization

2023-04-19 Thread Richard Biener via Gcc-patches
ization.c > > Pan > > -Original Message- > From: Li, Pan2 > Sent: Wednesday, April 19, 2023 2:47 PM > To: Richard Biener > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; kito.ch...@sifive.com; > richard.sandif...@arm.com; Wang, Yanzhang > Subject: RE:

RE: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization

2023-04-19 Thread Li, Pan2 via Gcc-patches
ang, Yanzhang Subject: RE: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization Oh, I see. The message need to be re-generated. Thank you for pointing out, will update ASPA. Pan -Original Message- From: Richard Biener Sent: Wednesday, April 19, 2023 2:40 PM To: Li, Pan2 Cc: gcc-pat

RE: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization

2023-04-18 Thread Li, Pan2 via Gcc-patches
...@arm.com; Wang, Yanzhang Subject: Re: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization On Tue, 18 Apr 2023, pan2...@intel.com wrote: > From: Pan Li > > This patch add the optimization for the vector IOR(V1, NOT V1). Assume > we have below sample code. &g

Re: [PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization

2023-04-18 Thread Richard Biener via Gcc-patches
On Tue, 18 Apr 2023, pan2...@intel.com wrote: > From: Pan Li > > This patch add the optimization for the vector IOR(V1, NOT V1). Assume > we have below sample code. > > vbool32_t test_shortcut_for_riscv_vmorn_case_5(vbool32_t v1, size_t vl) > { > return __riscv_vmorn_mm_b32(v1, v1, vl); > } >

[PATCH v2] RISC-V: Allow Vector IOR(V1, NOT V1) optimization

2023-04-18 Thread Pan Li via Gcc-patches
From: Pan Li This patch add the optimization for the vector IOR(V1, NOT V1). Assume we have below sample code. vbool32_t test_shortcut_for_riscv_vmorn_case_5(vbool32_t v1, size_t vl) { return __riscv_vmorn_mm_b32(v1, v1, vl); } Before this patch: vsetvli a5,zero,e8,mf4,ta,ma vlm.vv24,0(a