Re: [PATCH] forwprop: Don't add uses to dce list if debug statement [PR116156]

2024-08-02 Thread Andrew Pinski
On Thu, Aug 1, 2024 at 11:55 PM Richard Biener wrote: > > On Thu, Aug 1, 2024 at 10:40 PM Andrew Pinski > wrote: > > > > The problem here is that when forwprop does a copy prop, into a statement, > > we mark the uses of that statement as possibly need to be removed. But it > > just > > happened

Re: [PATCH] forwprop: Don't add uses to dce list if debug statement [PR116156]

2024-08-01 Thread Richard Biener
On Thu, Aug 1, 2024 at 10:40 PM Andrew Pinski wrote: > > The problem here is that when forwprop does a copy prop, into a statement, > we mark the uses of that statement as possibly need to be removed. But it just > happened that statement was a debug statement, there will be a difference when > co

[PATCH] forwprop: Don't add uses to dce list if debug statement [PR116156]

2024-08-01 Thread Andrew Pinski
The problem here is that when forwprop does a copy prop, into a statement, we mark the uses of that statement as possibly need to be removed. But it just happened that statement was a debug statement, there will be a difference when compiling with debuging info turned on vs off; this is not expecte