]> granicus.if.org Git - llvm/commit
[Power9] Exploit vector absolute difference instructions on Power 9
authorStefan Pintilie <stefanp@ca.ibm.com>
Wed, 2 Aug 2017 20:07:21 +0000 (20:07 +0000)
committerStefan Pintilie <stefanp@ca.ibm.com>
Wed, 2 Aug 2017 20:07:21 +0000 (20:07 +0000)
commit07635d3971afcb6560780f420d8e15ebc55498b2
tree5a00adf38a718ecd37455c6257c7b6926c710a56
parent82f73ee5b37a2a4cc1bdad02bebaaaba71b65400
[Power9] Exploit vector absolute difference instructions on Power 9

Power 9 has instructions to do absolute difference (VABSDUB, VABSDUH, VABSDUW)
for byte, halfword and word. We should take advantage of these.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstrAltivec.td
test/CodeGen/PowerPC/ppc64-P9-vabsd.ll [new file with mode: 0644]