commit | 0bca0d9f0651efb85988da69d34431d0447af5f1 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Wed Jul 25 01:15:38 2018 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Wed Jul 25 01:15:38 2018 +0000 |
tree | a884bdd9f9c9dbf708a2491f216c31e862edbe06 | |
parent | d277be2a297ef2d55982e4a63cfd2a8de6d88243 [diff] |
[X86] Use a shift plus an lea for multiplying by a constant that is a power of 2 plus 2/4/8. The LEA allows us to combine an add and the multiply by 2/4/8 together so we just need a shift for the larger power of 2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337875 91177308-0d34-0410-b5e6-96231b3b80d8