[Patch,AVR]: Fix PR50449
Weddington, Eric
Eric.Weddington@atmel.com
Tue Sep 20 19:32:00 GMT 2011
> -----Original Message-----
> From: Georg-Johann Lay [mailto:avr@gjlay.de]
> Sent: Tuesday, September 20, 2011 12:28 PM
> To: gcc-patches@gcc.gnu.org
> Cc: Weddington, Eric; Anatoly Sokolov; Denis Chertykov
> Subject: [Patch,AVR]: Fix PR50449
>
> This is fix for a minor performance regression introduced by my changes in
> trunk r175956: To load a 32-bit constant like 1 into R2, 4.6 uses
>
> CLR R2
> CLR R3
> MOVW R4,R2
> INC R2
>
> whereas trunk prints the longer
>
> CLR R2
> INC R2
> CLR R3
> CLR R4
> CLR R5
>
> This patch fixes it. The insns affected (*reload_insi and *reload_insf)
> whose
> instruction length must be adjusted now use an insn attribute to express
> how
> the adjustment has to be performed.
>
>
> Tested without regressions.
>
> Ok to commit?
>
Please commit.
Eric
More information about the Gcc-patches
mailing list