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]

[PATCH Atom] Fix for PR target/50962 (bad AGU stall avoidance)


Hello,

Here is a fix for PR 50962. Fix improves AGU stall avoidance
optimization by adding opportunity to emit lea instead of mov when it
is profitable.

Bootstrapped and checked on linux-x86_64.

Could please someone review it?

Thanks,
Ilya
---
gcc/

2011-11-03  Enkovich Ilya  <ilya.enkovich@intel.com>

	PR target/50962
	* config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
	* config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
	* config/i386/i386.md (movsi_internal): Emit lea if profitable.
	(movdi_internal_rex64): Likewise.

Attachment: PR50962.diff
Description: Binary data


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