OSDN Git Service

[X86] Add a DAG combine to simplify PMULDQ/PMULUDQ nodes
authorCraig Topper <craig.topper@intel.com>
Sat, 24 Mar 2018 01:52:01 +0000 (01:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 24 Mar 2018 01:52:01 +0000 (01:52 +0000)
commitb97c8e64c6ee026a6130e95f842d32d05e46f483
tree02fb298139c7759a745856905b1f84690ff94669
parent39974018fc68369d4894048eb3d5d2c49ee5e755
[X86] Add a DAG combine to simplify PMULDQ/PMULUDQ nodes

These nodes only use the lower 32 bits of their inputs so we can use SimplifyDemandedBits to simplify them.

Differential Revision: https://reviews.llvm.org/D44375

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