[PATCH] Add X86_TUNE_AVOID_LEA_FOR_ADDR
Fri Jan 17 15:36:00 GMT 2014
On Fri, Jan 17, 2014 at 4:17 PM, H.J. Lu <email@example.com> wrote:
>> BTW: There are some ix86_tune == XXX conditions scattered throughout
>> LEA handling code. Can these be substituted with appropriate TARGET_*
> I have been looking at them closely to check their impacts on
> both Haswell and Silvermont. I am planning to keep
> the simple LEA -> ADD transformation, but avoid
> the complex LEA -> ADD/MOV/SHL transformation.
No, I didn't talk about functional change, but about equivalent
TARGET_* define that can be used instead of "(ix86_tune ==
PROCESSOR_SILVERMONT) || (ix86_tune == PROCESSOR_INTEL)".
More information about the Gcc-patches