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.enkov...@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.
PR50962.diff
Description: Binary data