Lower multiply-negate operation to mneg on AArch64
authorKarthik Bhat <kv.bhat@samsung.com>
Mon, 22 Dec 2014 13:38:58 +0000 (13:38 +0000)
committerKarthik Bhat <kv.bhat@samsung.com>
Mon, 22 Dec 2014 13:38:58 +0000 (13:38 +0000)
commit0c2590a2668998d539ebdf2effe57ab64f861e99
treeca09499708fc4728d7f5439207fe23de07d3d943
parentb646a4b0b8df01d6cffbc628ba7d7139537ee4fe
Lower multiply-negate operation to mneg on AArch64

This patch pattern matches code such as-
neg  w8, w8
mul  w8, w9, w8
to
mneg  w8, w8, w9

Review: http://reviews.llvm.org/D6754

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224706 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/dp-3source.ll