[X86] Expand mul by pow2 + 2 using a shift and two adds similar to what we do for...
authorCraig Topper <craig.topper@intel.com>
Wed, 25 Jul 2018 01:15:35 +0000 (01:15 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 25 Jul 2018 01:15:35 +0000 (01:15 +0000)
commit5be253d9886479f158904feeeebdce62a34019d4
tree3f3fd9c9e5d3593311a7f5bfbbe389f0d46f6d09
parentbae7367cd9942e832eaffe105ea42c170a0ed810
[X86] Expand mul by pow2 + 2 using a shift and two adds similar to what we do for pow2 - 2.

llvm-svn: 337874
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/mul-constant-i16.ll
llvm/test/CodeGen/X86/mul-constant-i32.ll
llvm/test/CodeGen/X86/mul-constant-i64.ll