RE: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-09-04 Thread Di Zhao OS via Gcc-patches
> -Original Message- > From: Richard Biener > Sent: Thursday, August 31, 2023 8:23 PM > To: Di Zhao OS > Cc: Jeff Law ; Martin Jambor ; gcc- > patc...@gcc.gnu.org > Subject: Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to > reduce cross backedge

Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-31 Thread Richard Biener via Gcc-patches
l Message- > > > > From: Richard Biener > > > > Sent: Tuesday, August 29, 2023 4:09 PM > > > > To: Di Zhao OS > > > > Cc: Jeff Law ; Martin Jambor ; > > gcc- > > > > patc...@gcc.gnu.org > > > > Subject: Re: [PATCH

RE: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-30 Thread Di Zhao OS via Gcc-patches
Hello Richard, > -Original Message- > From: Richard Biener > Sent: Tuesday, August 29, 2023 7:11 PM > To: Di Zhao OS > Cc: Jeff Law ; Martin Jambor ; gcc- > patc...@gcc.gnu.org > Subject: Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to > r

Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-29 Thread Jeff Law via Gcc-patches
On 8/29/23 01:41, Richard Biener wrote: _1 = a * b; _2 = .FMA (c, d, _1); acc_1 = acc_0 + _2; How can we execute the multiply and the FMA in parallel? They depend on each other. Or is it the uarch can handle dependence on the add operand but only when it is with a

Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-29 Thread Richard Biener via Gcc-patches
> > > > From: Richard Biener > > > > Sent: Tuesday, August 29, 2023 3:41 PM > > > > To: Jeff Law ; Martin Jambor > > > > Cc: Di Zhao OS ; gcc-patches@gcc.gnu.org > > > > Subject: Re: [PATCH] [tree-optimization/110279] swap operands in reassoc >

RE: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-29 Thread Di Zhao OS via Gcc-patches
Hi, > -Original Message- > From: Richard Biener > Sent: Tuesday, August 29, 2023 4:09 PM > To: Di Zhao OS > Cc: Jeff Law ; Martin Jambor ; gcc- > patc...@gcc.gnu.org > Subject: Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to > reduce cross

Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-29 Thread Richard Biener via Gcc-patches
On Tue, Aug 29, 2023 at 9:49 AM Di Zhao OS wrote: > > Hi, > > > -Original Message- > > From: Richard Biener > > Sent: Tuesday, August 29, 2023 3:41 PM > > To: Jeff Law ; Martin Jambor > > Cc: Di Zhao OS ; gcc-patches@gcc.gnu.org > > Subject

RE: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-29 Thread Di Zhao OS via Gcc-patches
Hi, > -Original Message- > From: Richard Biener > Sent: Tuesday, August 29, 2023 3:41 PM > To: Jeff Law ; Martin Jambor > Cc: Di Zhao OS ; gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to > reduce cross backedge

Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-29 Thread Richard Biener via Gcc-patches
On Tue, Aug 29, 2023 at 1:23 AM Jeff Law via Gcc-patches wrote: > > > > On 8/28/23 02:17, Di Zhao OS via Gcc-patches wrote: > > This patch tries to fix the 2% regression in 510.parest_r on > > ampere1 in the tracker. (Previous discussion is here: > >

Re: [PATCH] [tree-optimization/110279] swap operands in reassoc to reduce cross backedge FMA

2023-08-28 Thread Jeff Law via Gcc-patches
On 8/28/23 02:17, Di Zhao OS via Gcc-patches wrote: This patch tries to fix the 2% regression in 510.parest_r on ampere1 in the tracker. (Previous discussion is here: https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624893.html) 1. Add testcases for the problem. For an op list in the form