[PATCH] D11471: Scalar to vector conversions using direct moves
Nemanja Ivanovic
nemanja.i.ibm at gmail.com
Thu Jul 23 12:53:25 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.
We currently always build vectors from scalar non-constant values using stack operations which involves the load-hit-store hazard. This patch is the first in a series that will allow operations such as scalar to vector, extract vector element, etc. to be done using direct move instructions rather than memory operations.
Since this is just the first patch, the code in some cases is not yet optimal, but all scalar to vector operations involve fewer memory operations.
Repository:
rL LLVM
http://reviews.llvm.org/D11471
Files:
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/PowerPC/PPCInstrVSX.td
lib/Target/PowerPC/PPCVSXCopy.cpp
test/CodeGen/PowerPC/fp-int-conversions-direct-moves.ll
test/CodeGen/PowerPC/vsx.ll
test/CodeGen/PowerPC/vsx_scalar_ld_st.ll
test/MC/Disassembler/PowerPC/vsx.txt
test/MC/PowerPC/vsx.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11471.30516.patch
Type: text/x-patch
Size: 14899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150723/9a3e6efa/attachment.bin>
More information about the llvm-commits
mailing list