PPC: Combine duplicate (offset) lvsl Altivec intrinsics
authorHal Finkel <hfinkel@anl.gov>
Sat, 25 May 2013 04:05:05 +0000 (04:05 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 25 May 2013 04:05:05 +0000 (04:05 +0000)
commit5a0e60425f4f942afb7e901b401a130da48a4d21
tree8007d3ad4c6d91c3097e34c1054f39a24babff27
parent81349a74352d5f2ccd527cf3389b7a1055e57a1d
PPC: Combine duplicate (offset) lvsl Altivec intrinsics

The lvsl permutation control instruction is a function only of the alignment of
the pointer operand (relative to the 16-byte natural alignment of Altivec
vectors). As a result, multiple lvsl intrinsics where the operands differ by a
multiple of 16 can be combined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182708 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/unal-altivec.ll