Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-13 Thread Xu, Liwei via Gcc-patches
Hi Richard I just found that modifying match.pd may be a better way since for forwprop-19.c, VEC_PERM_EXPR exists in all gimple until 235t.optimize with current trunk code, that leave us no pass to ‘scan-tree-dump-not’. Best Regards Levy > On 14 Oct 2022, at 2:19 pm, Richard Biener wrote: >

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-13 Thread Richard Biener via Gcc-patches
On Fri, Oct 14, 2022 at 3:49 AM Lulu Cheng wrote: > > > 在 2022/10/13 下午7:10, Richard Biener 写道: > > On Thu, Oct 13, 2022 at 10:16 AM Lulu Cheng wrote: > >> > >> 在 2022/10/13 下午2:44, Xi Ruoyao 写道: > >>> On Thu, 2022-10-13 at 14:15 +0800, Levy wrote: > Hi RuoYao > > It’s probably bec

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-13 Thread Lulu Cheng
在 2022/10/13 下午7:10, Richard Biener 写道: On Thu, Oct 13, 2022 at 10:16 AM Lulu Cheng wrote: 在 2022/10/13 下午2:44, Xi Ruoyao 写道: On Thu, 2022-10-13 at 14:15 +0800, Levy wrote: Hi RuoYao It’s probably because loongarch64 doesn’t support can_vec_perm_const_p(result_mode, op_mode, sel2, false)

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-13 Thread Xu, Liwei via Gcc-patches
Hi Richard Thank your for your detailed explanation, I’ll patch the test case with suggestions form LuLu. Best Levy > On 13 Oct 2022, at 7:12 pm, Richard Biener wrote: > > On Thu, Oct 13, 2022 at 10:16 AM Lulu Cheng wrote: >> >> >>> 在 2022/10/13 下午2:44, Xi Ruoyao 写道: >>> On Thu, 2022-10-

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-13 Thread Richard Biener via Gcc-patches
On Thu, Oct 13, 2022 at 10:16 AM Lulu Cheng wrote: > > > 在 2022/10/13 下午2:44, Xi Ruoyao 写道: > > On Thu, 2022-10-13 at 14:15 +0800, Levy wrote: > >> Hi RuoYao > >> > >> It’s probably because loongarch64 doesn’t support > >> can_vec_perm_const_p(result_mode, op_mode, sel2, false) > >> > >> I’m not s

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-13 Thread Lulu Cheng
在 2022/10/13 下午2:44, Xi Ruoyao 写道: On Thu, 2022-10-13 at 14:15 +0800, Levy wrote: Hi RuoYao It’s probably because loongarch64 doesn’t support can_vec_perm_const_p(result_mode, op_mode, sel2, false) I’m not sure whether if loongarch will support it or should I just limit the test target for p

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-12 Thread Xi Ruoyao via Gcc-patches
On Thu, 2022-10-13 at 14:15 +0800, Levy wrote: > Hi RuoYao > > It’s probably because loongarch64 doesn’t support > can_vec_perm_const_p(result_mode, op_mode, sel2, false) > > I’m not sure whether if loongarch will support it or should I just > limit the test target for pr54346.c? I'm not sure i

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-12 Thread Levy
Hi RuoYao It’s probably because loongarch64 doesn’t support can_vec_perm_const_p(result_mode, op_mode, sel2, false) I’m not sure whether if loongarch will support it or should I just limit the test target for pr54346.c? Best Regards Levy > On 12 Oct 2022, at 9:51 pm, Xi Ruoyao wrote: > > pr

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-10-12 Thread Xi Ruoyao via Gcc-patches
On Mon, 2022-09-26 at 14:56 +0800, Liwei Xu via Gcc-patches wrote: >     This patch implemented the optimization in PR 54346, which Merges > > c = VEC_PERM_EXPR ; >     d = VEC_PERM_EXPR ; >     to >     d = VEC_PERM_EXPR ; > > Bootstrapped and regtested on

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-09-30 Thread Xu, Liwei via Gcc-patches
Hi Richard Sure, I’ll also check the VLA case once I’m back from vacation, thank you for your help. Best Regards Liwei > On 30 Sep 2022, at 5:17 pm, Richard Sandiford > wrote: > > Richard Biener writes: >>> On Mon, Sep 26, 2022 at 8:58 AM Liwei Xu wrote: >>> >>>This patch implem

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-09-30 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Mon, Sep 26, 2022 at 8:58 AM Liwei Xu wrote: >> >> This patch implemented the optimization in PR 54346, which Merges >> >> c = VEC_PERM_EXPR ; >> d = VEC_PERM_EXPR ; >> to >> d = VEC_PERM_EXPR ; >> >> Bootstrapped

Re: [PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-09-26 Thread Richard Biener via Gcc-patches
On Mon, Sep 26, 2022 at 8:58 AM Liwei Xu wrote: > > This patch implemented the optimization in PR 54346, which Merges > > c = VEC_PERM_EXPR ; > d = VEC_PERM_EXPR ; > to > d = VEC_PERM_EXPR ; > > Bootstrapped and regtested on x86_64-pc-linux-g

[PATCH] Optimize nested permutation to single VEC_PERM_EXPR [PR54346]

2022-09-25 Thread Liwei Xu via Gcc-patches
This patch implemented the optimization in PR 54346, which Merges c = VEC_PERM_EXPR ; d = VEC_PERM_EXPR ; to d = VEC_PERM_EXPR ; Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,} tree-ssa/forwprop-19.c fail to pass but I'm not