OSDN Git Service

[ARM] Add missing patterns for DSP muls
authorSam Parker <sam.parker@arm.com>
Tue, 8 Jan 2019 10:12:36 +0000 (10:12 +0000)
committerSam Parker <sam.parker@arm.com>
Tue, 8 Jan 2019 10:12:36 +0000 (10:12 +0000)
commitc108e2cef7689c3c5ce4bc5edd5fe0c32f735b02
tree8a5795161430439b19206f7d1f77a646e5cfbb00
parent2363fe8f86874ff29052bde858d25125412b5aef
[ARM] Add missing patterns for DSP muls

Using a PatLeaf for sext_16_node allowed matching smulbb and smlabb
instructions once the operands had been sign extended. But we also
need to use sext_inreg operands along with sext_16_node to catch a
few more cases that enable use to remove the unnecessary sxth.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350613 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
test/CodeGen/ARM/smul.ll