[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)
commit53000a74a5c9f1be2ec09bfeb3533a80667e4b2f
tree2fbf9fc71c7415389fa2e25d11dbcba18f9a50a1
parente72804066c934121c066b2d8f5a2da4be17c9502
[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

llvm-svn: 350613
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/test/CodeGen/ARM/smul.ll