diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-10-07 19:47:53 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-10-07 19:47:53 +0000 |
commit | fb92f4645968724d2095ef95a7034d7e20d39b3f (patch) | |
tree | b7bd9c3c111dd3ec500bfecf292dbd551abacc74 /test/Transforms | |
parent | 116189a997a71d0e63db64ef4c6c3906078d94cf (diff) | |
download | external_llvm-fb92f4645968724d2095ef95a7034d7e20d39b3f.zip external_llvm-fb92f4645968724d2095ef95a7034d7e20d39b3f.tar.gz external_llvm-fb92f4645968724d2095ef95a7034d7e20d39b3f.tar.bz2 |
Struct byval: use the correct alignment for loads generated to load
from struct byval to registers.
We used to pass 0 which means the alignment of PtrVT. Even when the alignment
of the struct is smaller than 4, the LOADs would have alignment of 4, and
further optimizations could combine the LOADs into a ldm, which would
cause crash.
The fix is to pass the alignment of the struct byval.
rdar://problem/15144402
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
0 files changed, 0 insertions, 0 deletions