Re: [PATCH] forwprop, v2: Canonicalize atomic fetch_op op x to op_fetch or vice versa [PR98737]

2022-01-13 Thread Richard Biener via Gcc-patches
On Thu, 13 Jan 2022, Jakub Jelinek wrote: > On Thu, Jan 13, 2022 at 04:07:20PM +0100, Richard Biener wrote: > > I'm mostly concerned about the replace_uses_by use. forwprop > > will go over newly emitted stmts and thus the hypothetical added > > > > lhs2 = d; > > > > record the copy and

[PATCH] forwprop, v2: Canonicalize atomic fetch_op op x to op_fetch or vice versa [PR98737]

2022-01-13 Thread Jakub Jelinek via Gcc-patches
On Thu, Jan 13, 2022 at 04:07:20PM +0100, Richard Biener wrote: > I'm mostly concerned about the replace_uses_by use. forwprop > will go over newly emitted stmts and thus the hypothetical added > > lhs2 = d; > > record the copy and schedule the stmt for removal, substituting 'd' > in each