OSDN Git Service

This patch closes PR28513: an optimization of multiplication by different constants.
authorAndrew V. Tischenko <andrew.v.tischenko@gmail.com>
Tue, 30 May 2017 13:00:44 +0000 (13:00 +0000)
committerAndrew V. Tischenko <andrew.v.tischenko@gmail.com>
Tue, 30 May 2017 13:00:44 +0000 (13:00 +0000)
commita31800bb04716ff167071505ac7274284cfe60ee
tree08ee12165ce61e27f7c989651c2596493cd54cda
parente840b9f244250d66575ee16823a035f5c17dc78f
This patch closes PR28513: an optimization of multiplication by different constants.
It's implemented on DAG combiner level.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304209 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/mul-constant-i16.ll
test/CodeGen/X86/mul-constant-i32.ll
test/CodeGen/X86/mul-constant-i64.ll