Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread Richard Biener via Gcc-patches
d Biener > Date: 2022-09-22 16:48 > To: juzhe.zh...@rivai.ai > CC: gcc-patches > Subject: Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis > On Thu, 22 Sep 2022, juzhe.zh...@rivai.ai wrote: > > > Does your local code exclude my codes? > > I am using GCC12.2. Whe

Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread juzhe.zh...@rivai.ai
this book provided? Or you have another better option to fix this issue ? Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2022-09-22 16:48 To: juzhe.zh...@rivai.ai CC: gcc-patches Subject: Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis On Thu, 22 Sep 2022, juzhe.zh...@rivai.ai

Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread juzhe.zh...@rivai.ai
rd Biener > Date: 2022-09-22 16:01 > To: juzhe.zh...@rivai.ai > Subject: Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis > On Thu, 22 Sep 2022, juzhe.zh...@rivai.ai wrote: > > > I tried this solution you gave: > > >> else if (ref_maybe_used_by_stmt_p (use_

Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread Richard Biener via Gcc-patches
gt; _5 = _1 + _4; > _8 = e[i_18]; > _9 = _3 * _8; > _10 = _5 + _9; > b[i_18] = _10; > _12 = i_18 + 1; > _13 = a[_12]; > _15 = _3 * _13; > _16 = _10 + _15; > a[i_18] = _16; > > the other relevant function is stmt_kills_ref_p, that one does > handle a[i_

Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread juzhe.zh...@rivai.ai
: Richard Biener Date: 2022-09-22 16:01 To: juzhe.zh...@rivai.ai Subject: Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis On Thu, 22 Sep 2022, juzhe.zh...@rivai.ai wrote: > I tried this solution you gave: > >> else if (ref_maybe_used_by_stmt_p (use_stmt, ref)) > >&

Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread Richard Biener via Gcc-patches
On Thu, 22 Sep 2022, Richard Biener wrote: > On Thu, 22 Sep 2022, juzhe.zh...@rivai.ai wrote: > > > From: Ju-Zhe Zhong > > > > This patch fix issue: PR 99407 > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99407 > > > > The enhancement implementation is simple: > > 1.Search gimple statement i

Re: Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread juzhe.zh...@rivai.ai
with def-ref analysis On Thu, 22 Sep 2022, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > This patch fix issue: PR 99407 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99407 > > The enhancement implementation is simple: > 1.Search gimple statement in program reverse

Re: [PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread Richard Biener via Gcc-patches
On Thu, 22 Sep 2022, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > This patch fix issue: PR 99407 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99407 > > The enhancement implementation is simple: > 1.Search gimple statement in program reverse order. > 2.Queue the store statement which m

[PATCH] DSE: Enhance dse with def-ref analysis

2022-09-22 Thread juzhe . zhong
From: Ju-Zhe Zhong This patch fix issue: PR 99407 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99407 The enhancement implementation is simple: 1.Search gimple statement in program reverse order. 2.Queue the store statement which may be possible kill the def of previous store statement. 3.Perfo

[PATCH] DSE: Enhance dse with def-ref analysis

2022-09-21 Thread juzhe . zhong
From: Ju-Zhe Zhong This patch fix issue: PR 99407 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99407 The enhancement implementation is simple: 1.Search gimple statement in program reverse order. 2.Queue the store statement which may be possible kill the def of previous store statement. 3.Perfo