[PowerPC] Use vector types for memcpy and friends (sometimes)
authorHal Finkel <hfinkel@anl.gov>
Fri, 27 Feb 2015 19:58:28 +0000 (19:58 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 27 Feb 2015 19:58:28 +0000 (19:58 +0000)
commite03aac601f67c80dec7ef776173b768e08d4b1fe
treedba48adc059d6122d1330d984602ff52ae3d735f
parent198d8baafbfdfcf5a5e219602a5d94ed263973b4
[PowerPC] Use vector types for memcpy and friends (sometimes)

When using Altivec, we can use vector loads and stores for aligned memcpy and
friends. Starting with the P7 and VXS, we have reasonable unaligned vector
stores. Starting with the P8, we have fast unaligned loads too.

For QPX, we use vector loads are stores, but only for aligned memory accesses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230788 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/memcpy-vec.ll [new file with mode: 0644]
test/CodeGen/PowerPC/ppc64-byval-align.ll