Commit 33bf2459 authored by Mark Mendell's avatar Mark Mendell
Browse files

[optimizing] x86: Prefer add over lea if possible



Looking at some generated code, I noticed an lea being used when an add
was sufficient.  Check for that case, and generate the add.

Fixed for x86 and x86_64.

Change-Id: I110304ff0fed8837ada96d34353a293d29022ce5
Signed-off-by: default avatarMark Mendell <mark.p.mendell@intel.com>
parent 00f09ff9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment