Re: [PATCH] Remove CC0

2021-05-27 Thread Jeff Law via Gcc-patches
On 5/27/2021 4:28 PM, Segher Boessenkool wrote: On Thu, May 27, 2021 at 12:58:10PM -0700, H.J. Lu wrote: You missed: config/cr16/cr16.md: (clobber (cc0))] config/cr16/cr16.md: [(parallel [(set (cc0) config/cr16/cr16.md: [(set (cc0) config/cr16/cr16.md: [(cc0) (const_int 0)]))]

Re: [PATCH] Remove CC0

2021-05-27 Thread Segher Boessenkool
On Thu, May 27, 2021 at 12:58:10PM -0700, H.J. Lu wrote: > You missed: > > config/cr16/cr16.md: (clobber (cc0))] > config/cr16/cr16.md: [(parallel [(set (cc0) > config/cr16/cr16.md: [(set (cc0) > config/cr16/cr16.md: [(cc0) (const_int 0)]))] > config/cr16/cr16.md: [(set (cc0) >

Re: [PATCH] Remove CC0

2021-05-27 Thread Segher Boessenkool
Hi! Whoops, I forgot to reply to this... On Wed, May 05, 2021 at 06:25:49PM +, Koning, Paul wrote: > > void g(void); > > void h(void); > > void i(void); > > void f(long a, long b) > > { > >if (a < b) > >g(); > >if (a == b) > >h(); > >if

Re: [PATCH] Remove CC0

2021-05-27 Thread H.J. Lu via Gcc-patches
On Mon, May 03, 2021 at 10:55:36PM +, Segher Boessenkool wrote: > This removes CC0 and all directly related infrastructure. > > CC_STATUS, CC_STATUS_MDEP, CC_STATUS_MDEP_INIT, and NOTICE_UPDATE_CC > are deleted and poisoned. CC0 is only deleted (some targets use that > name for something

Re: [PATCH] Remove CC0

2021-05-05 Thread Koning, Paul via Gcc-patches
> On May 5, 2021, at 8:45 AM, Segher Boessenkool > wrote: > > Hi~ > > On Tue, May 04, 2021 at 04:08:22PM +0100, Richard Earnshaw wrote: >> On 03/05/2021 23:55, Segher Boessenkool wrote: >>> CC_STATUS_INIT is suggested in final.c to also be useful for ports that >>> are not CC0, and at least

Re: [PATCH] Remove CC0

2021-05-05 Thread Segher Boessenkool
Hi~ On Tue, May 04, 2021 at 04:08:22PM +0100, Richard Earnshaw wrote: > On 03/05/2021 23:55, Segher Boessenkool wrote: > >CC_STATUS_INIT is suggested in final.c to also be useful for ports that > >are not CC0, and at least arm seems to use it for something. So I am > >leaving that alone, but

Re: [PATCH] Remove CC0

2021-05-04 Thread Richard Earnshaw via Gcc-patches
On 04/05/2021 17:22, Eric Botcazou wrote: A quick look through the code suggests it's being used for thumb1 code gen to try to reproduce the traditional CC0 type behaviour of eliminating redundant compare operations when you have sequences such as cmp a, b b d1 cmp a, b b d2 The second

Re: [PATCH] Remove CC0

2021-05-04 Thread Eric Botcazou
> A quick look through the code suggests it's being used for thumb1 code > gen to try to reproduce the traditional CC0 type behaviour of > eliminating redundant compare operations when you have sequences such as > > cmp a, b > b d1 > cmp a, b > b d2 > > The second compare operation can be

Re: [PATCH] Remove CC0

2021-05-04 Thread Segher Boessenkool
On Tue, May 04, 2021 at 10:44:38AM +0200, Richard Biener wrote: > On Tue, May 4, 2021 at 1:40 AM Segher Boessenkool > wrote: > > > > This removes CC0 and all directly related infrastructure. > > > > CC_STATUS, CC_STATUS_MDEP, CC_STATUS_MDEP_INIT, and NOTICE_UPDATE_CC > > are deleted and poisoned.