Skip to content
Commit c3e11bf3 authored by Craig Topper's avatar Craig Topper
Browse files

[X86] Add support expanding multiplies by constant where the constant is...

[X86] Add support expanding multiplies by constant where the constant is -3/-5/-9 multplied by a power of 2.

These can be replaced with an LEA, a shift, and a negate. This seems to match what gcc and icc would do.

llvm-svn: 338174
parent fdfe2a92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment