Re: [PATCH] RISC-V: Keep vlmax vector operators in simple form until split1 pass

2023-09-06 Thread Lehua Ding
Committed, thanks Kito. -- Best, Lehua

Re: [PATCH] RISC-V: Keep vlmax vector operators in simple form until split1 pass

2023-09-06 Thread Kito Cheng via Gcc-patches
Thanks for explaining, LGTM :) On Mon, Sep 4, 2023 at 11:39 PM Lehua Ding wrote: > > Hi Kito, > > > Can those intermediate patterns be used for intrinsic? I would prefer > > to keep those stuff *IF* possible used for intrinsics. > > I think we don't need those patterns for intrinisc. First, the

Re: [PATCH] RISC-V: Keep vlmax vector operators in simple form until split1 pass

2023-09-04 Thread Lehua Ding
Hi Kito, Can those intermediate patterns be used for intrinsic? I would prefer to keep those stuff *IF* possible used for intrinsics. I think we don't need those patterns for intrinisc. First, the deleted pattern does not directly correspond to intrinisc. Second, if you want to use these pat

Re: [PATCH] RISC-V: Keep vlmax vector operators in simple form until split1 pass

2023-09-04 Thread Kito Cheng via Gcc-patches
Can those intermediate patterns be used for intrinsic? I would prefer to keep those stuff *IF* possible used for intrinsics. On Mon, Sep 4, 2023 at 7:14 PM Lehua Ding wrote: > > This patch keep vlmax vector pattern in simple before split1 pass which > will allow more optimization (e.g. combine) b

[PATCH] RISC-V: Keep vlmax vector operators in simple form until split1 pass

2023-09-04 Thread Lehua Ding
This patch keep vlmax vector pattern in simple before split1 pass which will allow more optimization (e.g. combine) before split1 pass. This patch changes the vlmax pattern in autovec.md to define_insn_and_split as much as possible and clean up some combine patterns that are no longer needed. This