OSDN Git Service

Fix PPC ABI for ByVal structs with vector members
authorHal Finkel <hfinkel@anl.gov>
Thu, 12 Sep 2013 23:20:06 +0000 (23:20 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 12 Sep 2013 23:20:06 +0000 (23:20 +0000)
commit6671cd4db079eb993f9bd340e0c33d61f0f27d81
treec5061935f0d0592acff03105dead896066b06c5c
parent405b6503b3568cfb4da9d1347e3f5640583429c9
Fix PPC ABI for ByVal structs with vector members

When a structure is passed by value, and that structure contains a vector
member, according to the PPC ABI, the structure will receive enhanced alignment
(so that the vector within the structure will always be aligned).

This should resolve PR16641.

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