Re: [PATCH v2] combine: perform jump threading at the end

2018-09-14 Thread Segher Boessenkool
On Wed, Sep 05, 2018 at 02:00:59PM +0200, Ilya Leoshkevich wrote: > +/* { dg-final { scan-assembler > "\n\tlt\t.*\n\tjne\t(\\.L\\d+)\n(.*\n)*\tcs\t.*\n\tber\t%r14\n\\1:\n\tjg\tbar\n" > } } */ About this RE. "." matches anything, also newlines, so (.*\n)* is the same as just .* (ignoring capture

Re: [PATCH v2] combine: perform jump threading at the end

2018-09-14 Thread Segher Boessenkool
On Mon, Sep 10, 2018 at 12:58:19PM +0200, Ilya Leoshkevich wrote: > > Am 06.09.2018 um 20:11 schrieb Jeff Law : > > This is (of course) much easier to do when the target block has no insns > > other than the conditional branch. So perhaps only do this when the > > target block has just the conditi

Re: [PATCH v2] combine: perform jump threading at the end

2018-09-10 Thread Ilya Leoshkevich
> Am 07.09.2018 um 00:39 schrieb Segher Boessenkool > : > > On Thu, Sep 06, 2018 at 12:11:09PM -0600, Jeff Law wrote: >> On 09/05/2018 06:11 AM, Richard Biener wrote: >>> On Wed, Sep 5, 2018 at 2:01 PM Ilya Leoshkevich wrote: + /* Combining insns can change basic blocks in a way that th

Re: [PATCH v2] combine: perform jump threading at the end

2018-09-10 Thread Ilya Leoshkevich
> Am 06.09.2018 um 20:11 schrieb Jeff Law : > > On 09/05/2018 06:11 AM, Richard Biener wrote: >> On Wed, Sep 5, 2018 at 2:01 PM Ilya Leoshkevich wrote: >>> >>> gcc/ChangeLog: >>> >>> 2018-09-05 Ilya Leoshkevich >>> >>>PR target/80080 >>>* combine.c (rest_of_handle_combine

Re: [PATCH v2] combine: perform jump threading at the end

2018-09-06 Thread Segher Boessenkool
On Thu, Sep 06, 2018 at 12:11:09PM -0600, Jeff Law wrote: > On 09/05/2018 06:11 AM, Richard Biener wrote: > > On Wed, Sep 5, 2018 at 2:01 PM Ilya Leoshkevich wrote: > >> + /* Combining insns can change basic blocks in a way that they end up > >> + containing a single jump_insn. This creates a

Re: [PATCH v2] combine: perform jump threading at the end

2018-09-06 Thread Jeff Law
On 09/05/2018 06:11 AM, Richard Biener wrote: > On Wed, Sep 5, 2018 at 2:01 PM Ilya Leoshkevich wrote: >> >> gcc/ChangeLog: >> >> 2018-09-05 Ilya Leoshkevich >> >> PR target/80080 >> * combine.c (rest_of_handle_combine): Perform jump threading. >> >> gcc/testsuite/ChangeLog: >>

Re: [PATCH v2] combine: perform jump threading at the end

2018-09-05 Thread Richard Biener
On Wed, Sep 5, 2018 at 2:01 PM Ilya Leoshkevich wrote: > > gcc/ChangeLog: > > 2018-09-05 Ilya Leoshkevich > > PR target/80080 > * combine.c (rest_of_handle_combine): Perform jump threading. > > gcc/testsuite/ChangeLog: > > 2018-09-05 Ilya Leoshkevich > > PR target/800