Re: [PATCH] Add a new pattern in 4-insn combine

2021-01-15 Thread Segher Boessenkool
On Mon, Nov 30, 2020 at 11:08:22AM +0800, HAO CHEN GUI wrote: >   This patch adds a new pattern(combine 4 insns to 3 insns) in 4-insn > combine. In the patch, newpat is split twice. The newpat, newi2pat and As I said before, that has a lot of problems, and is only suitable for stage 1 (after man

Re: [PATCH] Add a new pattern in 4-insn combine

2021-01-14 Thread HAO CHEN GUI via Gcc-patches
Segher,     Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/560573.html Thanks a lot. On 4/1/2021 上午 10:03, HAO CHEN GUI wrote: Segher,     Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/560573.html Thanks a lot. On 11/12/2020 上午 10:14

Re: [PATCH] Add a new pattern in 4-insn combine

2021-01-03 Thread HAO CHEN GUI via Gcc-patches
Segher,     Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/560573.html Thanks a lot. On 11/12/2020 上午 10:14, HAO CHEN GUI wrote: Segher,     Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/560573.html

Re: [PATCH] Add a new pattern in 4-insn combine

2020-12-10 Thread HAO CHEN GUI via Gcc-patches
Segher,     Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2020-November/560573.html On 30/11/2020 上午 11:08, HAO CHEN GUI wrote: Hi,   This patch adds a new pattern(combine 4 insns to 3 insns) in 4-insn combine. In the patch, newpat is split twice. The newpat, newi2pat and newi

[PATCH] Add a new pattern in 4-insn combine

2020-11-29 Thread HAO CHEN GUI via Gcc-patches
Hi,   This patch adds a new pattern(combine 4 insns to 3 insns) in 4-insn combine. In the patch, newpat is split twice. The newpat, newi2pat and newi1pat replace i3, i2 and i1 respectively. The 4 to 3 combine is done at the end where all former attempts fail. In 4 insn combine pre-check, the

Re: [PATCH] Add a new pattern in 4-insn combine

2020-11-13 Thread Jim Wilson
On Tue, Nov 10, 2020 at 4:18 PM Jeff Law via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > > On 11/8/20 7:48 PM, HAO CHEN GUI via Gcc-patches wrote: > > ChangeLog > > > > * combine.c (combine_validate_cost): Add an argument for newi1pat. > > (try_combine): Add a 4-insn combine patter

Re: [PATCH] Add a new pattern in 4-insn combine

2020-11-12 Thread Segher Boessenkool
On Wed, Nov 11, 2020 at 06:22:53PM -0600, Segher Boessenkool wrote: > I'm running an all-arch comparison with this patch, just to see what it > does, but [...] Results: C0 is trunk, C1 with patch: C0C1 alpha 6422312 99.971% arc 3783838 100.000%

Re: [PATCH] Add a new pattern in 4-insn combine

2020-11-11 Thread Segher Boessenkool
Hi Hao Chen, [ You first need to add yourself to MAINTAINERS? And get an account to do that, if you do not yet have one yet :-) ] On Mon, Nov 09, 2020 at 10:48:19AM +0800, HAO CHEN GUI wrote: > This patch adds a new pattern in 4-insn combine. It supports the > following sign_extend(op: zero_e

Re: [PATCH] Add a new pattern in 4-insn combine

2020-11-10 Thread Jeff Law via Gcc-patches
On 11/8/20 7:48 PM, HAO CHEN GUI via Gcc-patches wrote: > Hi, > > This patch adds a new pattern in 4-insn combine. It supports the > following sign_extend(op: zero_extend, zero_extend) optimization. In > the patch, newpat is split twice. The first split becomes newi1pat and > the second becomes n

[PATCH] Add a new pattern in 4-insn combine

2020-11-08 Thread HAO CHEN GUI via Gcc-patches
Hi, This patch adds a new pattern in 4-insn combine. It supports the following sign_extend(op: zero_extend, zero_extend) optimization. In the patch, newpat is split twice. The first split becomes newi1pat and the second becomes newi2pat. They replace i1, i2 and i3 if all of them can be recogn