Commit ba56d060 authored by Mark Mendell's avatar Mark Mendell
Browse files

[optimizing] Improve 32 bit long shift by 1.



Also change FOO << 1 to FOO+FOO in the instruction simplifier.  This is
an architecture independent simplification, which helps 'long << 1' for
32 bit architectures.

Generate an add/adc for long << 1 in x86, in case something is generated
after the simplifier.

Add test cases for the simplification.

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