2014-10-23 17:48 GMT+04:00 Georg-Johann Lay <a...@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.