RE: [PATCH 3/21]middle-end: Implement code motion and dependency analysis for early breaks

2023-12-20 Thread Richard Biener
On Wed, 20 Dec 2023, Tamar Christina wrote: > > > + /* If we've moved a VDEF, extract the defining MEM and update > > > + usages of it. */ > > > + tree vdef; > > > + /* This statement is to be moved. */ > > > + if ((vdef = gimple_vdef (stmt))) > > > +

RE: [PATCH 3/21]middle-end: Implement code motion and dependency analysis for early breaks

2023-12-20 Thread Tamar Christina
> > + /* If we've moved a VDEF, extract the defining MEM and update > > +usages of it. */ > > + tree vdef; > > + /* This statement is to be moved. */ > > + if ((vdef = gimple_vdef (stmt))) > > + LOOP_VINFO_EARLY_BRK_CONFLICT_STMTS >

RE: [PATCH 3/21]middle-end: Implement code motion and dependency analysis for early breaks

2023-12-19 Thread Richard Biener
On Tue, 19 Dec 2023, Tamar Christina wrote: > > > > > + /* Save destination as we go, BB are visited in order and the > > > > > last one > > > > > + is where statements should be moved to. */ > > > > > + if (!dest_bb) > > > > > + dest_bb = gimple_bb (c); > > > > > + else

RE: [PATCH 3/21]middle-end: Implement code motion and dependency analysis for early breaks

2023-12-19 Thread Tamar Christina
> > > > + /* Save destination as we go, BB are visited in order and the > > > > last one > > > > + is where statements should be moved to. */ > > > > + if (!dest_bb) > > > > + dest_bb = gimple_bb (c); > > > > + else > > > > + { > > > > + basic_block

RE: [PATCH 3/21]middle-end: Implement code motion and dependency analysis for early breaks

2023-11-07 Thread Richard Biener
On Tue, 7 Nov 2023, Tamar Christina wrote: > > -Original Message- > > From: Richard Biener > > Sent: Tuesday, November 7, 2023 10:53 AM > > To: Tamar Christina > > Cc: gcc-patches@gcc.gnu.org; nd ; j...@ventanamicro.com > > Subject: Re: [PATCH 3/

RE: [PATCH 3/21]middle-end: Implement code motion and dependency analysis for early breaks

2023-11-07 Thread Tamar Christina
> -Original Message- > From: Richard Biener > Sent: Tuesday, November 7, 2023 10:53 AM > To: Tamar Christina > Cc: gcc-patches@gcc.gnu.org; nd ; j...@ventanamicro.com > Subject: Re: [PATCH 3/21]middle-end: Implement code motion and > dependency analysis for early

Re: [PATCH 3/21]middle-end: Implement code motion and dependency analysis for early breaks

2023-11-07 Thread Richard Biener
On Mon, 6 Nov 2023, Tamar Christina wrote: > Hi All, > > When performing early break vectorization we need to be sure that the vector > operations are safe to perform. A simple example is e.g. > > for (int i = 0; i < N; i++) > { >vect_b[i] = x + i; >if (vect_a[i]*2 != x) >