|
From: Josh S. <jo...@4s...> - 2003-07-08 17:57:21
|
Cool, thanks. I'll put that in and see what happens. -----Original Message----- From: sdc...@li... [mailto:sdc...@li...]On Behalf Of Bernhard Held Sent: Tuesday, July 08, 2003 1:44 AM To: sdc...@li... Subject: Re: [Sdcc-user] missing possible optimizations? > <test.asm snip> > 155: mov r2,a > 158: mov a,#0x01 > 160: add a,r2 > > This could be optimized to: > mov r2,a > inc a > This could be corrected with a peep-file, but it seems like something that > the compiler should have done better in the first place. Ack. I've got a patch for this problem, but it clashes with the over-optimistic peephole rule #212. This rule is hit quite often in model stack-auto. Therefore I didn't apply the patch to keep rule #212. Bernhard |