Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-26 Thread Richard Sandiford via Gcc-patches
"H.J. Lu" writes: > On Wed, May 25, 2022 at 12:30 AM Richard Sandiford > wrote: >> >> "H.J. Lu via Gcc-patches" writes: >> > On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: >> >> On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-patches >> >> wrote: >> >> > >> >> > When recording

Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-25 Thread H.J. Lu via Gcc-patches
On Wed, May 25, 2022 at 2:30 AM Richard Sandiford wrote: > > Richard Biener via Gcc-patches writes: > > On Tue, May 24, 2022 at 10:11 PM H.J. Lu wrote: > >> > >> On Mon, May 23, 2022 at 11:42 PM Richard Biener > >> wrote: > >> > > >> > On Mon, May 23, 2022 at 8:34 PM H.J. Lu wrote: > >> > > >

Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-25 Thread H.J. Lu via Gcc-patches
On Wed, May 25, 2022 at 12:30 AM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > > On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: > >> On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-patches > >> wrote: > >> > > >> > When recording store for RTL dead store elimi

Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-25 Thread Richard Sandiford via Gcc-patches
Richard Biener via Gcc-patches writes: > On Tue, May 24, 2022 at 10:11 PM H.J. Lu wrote: >> >> On Mon, May 23, 2022 at 11:42 PM Richard Biener >> wrote: >> > >> > On Mon, May 23, 2022 at 8:34 PM H.J. Lu wrote: >> > > >> > > On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: >> > >

Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-25 Thread Richard Biener via Gcc-patches
On Tue, May 24, 2022 at 10:11 PM H.J. Lu wrote: > > On Mon, May 23, 2022 at 11:42 PM Richard Biener > wrote: > > > > On Mon, May 23, 2022 at 8:34 PM H.J. Lu wrote: > > > > > > On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: > > > > On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-

Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-25 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: >> On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-patches >> wrote: >> > >> > When recording store for RTL dead store elimination, check if the source >> > register is set only once to a constant.

Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-24 Thread H.J. Lu via Gcc-patches
On Mon, May 23, 2022 at 11:42 PM Richard Biener wrote: > > On Mon, May 23, 2022 at 8:34 PM H.J. Lu wrote: > > > > On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: > > > On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-patches > > > wrote: > > > > > > > > When recording store for RT

Re: [PATCH v2] DSE: Use the constant store source if possible

2022-05-23 Thread Richard Biener via Gcc-patches
On Mon, May 23, 2022 at 8:34 PM H.J. Lu wrote: > > On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: > > On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-patches > > wrote: > > > > > > When recording store for RTL dead store elimination, check if the source > > > register is set only

[PATCH v2] DSE: Use the constant store source if possible

2022-05-23 Thread H.J. Lu via Gcc-patches
On Mon, May 23, 2022 at 12:38:06PM +0200, Richard Biener wrote: > On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-patches > wrote: > > > > When recording store for RTL dead store elimination, check if the source > > register is set only once to a constant. If yes, record the constant > > as the s