This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch,avr] tweak sign extensions


2014-10-23 17:48 GMT+04:00 Georg-Johann Lay <avr@gjlay.de>:
> This optimization makes most sign-extensions one instruction shorter in the
> case when the source register may be clobbered and the register numbers are
> different.  Source and destination may overlap.
>
> Ok for trunk?
>
>
> Johann
>
> gcc/
>         * config/avr/avr.md (extendqihi2, extendqipsi2, extendqisi2)
>         (extendhipsi2, extendhisi2): Optimize if source reg is unused
>         after the insns and has different REGNO than destination.

Approved.

Denis.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]