Re: [Sdcc-user] PDK peephole rules - notUsed('a') seems to give bogus results

2024-01-11 Thread Philipp Klaus Krause
Is notUsed() on PDK buggy, or am I missing something? notUsed is not exact, it errs on the safe side if in doubt. This means that when notUsed first gets implemented for a port, it gets implemented "good enough" for the first few use-cases. Over time it can then be refined to become more accu

Re: [Sdcc-user] PDK peephole rules - notUsed('a') seems to give bogus results

2024-01-11 Thread Basil Hussain
On 11/01/2024 11:11, Philipp Klaus Krause wrote: I'll try to look into making notUsed work better for your use case. If there is no corresponding commit to the next branch this week, I suggest to open a feature request ticket, so this doesn't get forgotten. Okay, thanks. I will do that. Regar

Re: [Sdcc-user] PDK peephole rules - notUsed('a') seems to give bogus results

2024-01-11 Thread Basil Hussain
Just as an addendum, I note that a feature request for peephole optimisations for the scenario I have been talking about already exists: #801 (https://sourceforge.net/p/sdcc/feature-requests/801/). I see that the submitter also observes that notUsed('a') is "not handled well at most conditions