Re: [fpc-devel] AVR - redundant mov followed by ldi instruction

2019-07-31 Thread Christo Crause
On Tue, Jul 23, 2019 at 9:49 PM Christo Crause wrote: > The following test code generates a redundant mov instruction which seems > to be related to a situation with an unused procedure parameter and the > inc() procedure: > > program testRegAlloc; > var > a, b: byte; > procedure

[fpc-devel] AVR - redundant mov followed by ldi instruction

2019-07-23 Thread Christo Crause
The following test code generates a redundant mov instruction which seems to be related to a situation with an unused procedure parameter and the inc() procedure: program testRegAlloc; var a, b: byte; procedure testDummyParam(var x: byte); begin inc(a); end; begin testDummyParam(b); end.