[PATCH] D12032: Vector element extraction without stack operations on Power 8

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 06:03:49 PDT 2015


nemanjai created this revision.
nemanjai added reviewers: wschmidt, hfinkel, kbarton, seurer.
nemanjai added a subscriber: llvm-commits.
nemanjai set the repository for this revision to rL LLVM.

This patch builds onto the patch that provided scalar to vector conversions without stack operations (D11471).
Included in this patch:
- Vector element extraction for all vector types with constant element number (both LE and BE)
- Vector element extraction for v16i8 and v8i16 with variable element number (both LE and BE)
- Removal of some unnecessary COPY_TO_REGCLASS operations that ended up unnecessarily moving things around between registers

Not included in this patch (will be in upcoming patch):
- Vector element extraction for v4i32, v4f32, v2i64 and v2f64 with variable element number
- Vector element insertion for variable/constant element number

Testing is provided for all extractions. The extractions that are not implemented yet are just placeholders.

Repository:
  rL LLVM

http://reviews.llvm.org/D12032

Files:
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/PowerPC/PPCInstrVSX.td
  lib/Target/PowerPC/PPCVSXCopy.cpp
  test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12032.32150.patch
Type: text/x-patch
Size: 61117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150814/b9d9badd/attachment.bin>


More information about the llvm-commits mailing list