[PowerPC] Exploit store instructions that store a single vector element
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 24 Jan 2019 23:44:28 +0000 (23:44 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 24 Jan 2019 23:44:28 +0000 (23:44 +0000)
commitb9b75de0aebce6fec139ab52ab6bf4bca2d41ee9
tree0b61ccfdb5b115a65bc89d394c1516c51ee3f46b
parent6bab7ab11e75f675f561162f40c9b28525b4e473
[PowerPC] Exploit store instructions that store a single vector element

This patch exploits the instructions that store a single element from a vector
to preform a (store (extract_elt)). We already have code that does this with
ISA 3.0 instructions that were added to handle i8/i16 types. However, we had
never exploited the existing ones that handle f32/f64/i32/i64 types.

Differential revision: https://reviews.llvm.org/D56175

llvm-svn: 352131
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/extract-and-store.ll
llvm/test/CodeGen/PowerPC/scalar_vector_test_2.ll