[Power9] Improvements to vector extract with variable index exploitation
authorZaara Syeda <syzaara@ca.ibm.com>
Mon, 27 Nov 2017 17:11:03 +0000 (17:11 +0000)
committerZaara Syeda <syzaara@ca.ibm.com>
Mon, 27 Nov 2017 17:11:03 +0000 (17:11 +0000)
commit48cb3c1557b1a326be60234c3200fc14ed9d2665
treec68b5d9e244159d43e4ff699b2f48d1fa2e1c701
parent11479d1babcfba5d4972363c38d31b13c786b8bd
[Power9] Improvements to vector extract with variable index exploitation

This patch extends on to rL307174 to not use the power9 vector extract with
variable index instructions when extracting word element 1. For such cases,
the existing selection of MFVSRWZ provides a better sequence.

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

llvm-svn: 319049
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/vec_extract_p9.ll