Re: [PATCH] cselib: Discard useless locs of preserved VALUEs [PR116627]

2024-09-29 Thread Jeff Law
On 9/11/24 3:26 PM, Jakub Jelinek wrote: Hi! remove_useless_values iteratively discards useless locs (locs of cselib_val which refer to non-preserved VALUEs with no locations), which in turn can make further values useless until no further VALUEs are made useless and then discards the useless

Re: [PATCH] cselib: Discard useless locs of preserved VALUEs [PR116627]

2024-09-11 Thread Jakub Jelinek
On Wed, Sep 11, 2024 at 11:26:27PM +0200, Jakub Jelinek wrote: > I think we need to discuard useless locs even from the preserved VALUEs. > That IMHO shouldn't create any further useless VALUEs, the preserved > VALUEs are never useless, so we don't need to iterate with it, can do it > just once, bu

[PATCH] cselib: Discard useless locs of preserved VALUEs [PR116627]

2024-09-11 Thread Jakub Jelinek
Hi! remove_useless_values iteratively discards useless locs (locs of cselib_val which refer to non-preserved VALUEs with no locations), which in turn can make further values useless until no further VALUEs are made useless and then discards the useless VALUEs. Preserved VALUEs (something done dur