Make SROA more aggressive with allocas containing padding.
authorBob Wilson <bob.wilson@apple.com>
Thu, 13 Jan 2011 17:45:08 +0000 (17:45 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 13 Jan 2011 17:45:08 +0000 (17:45 +0000)
commit694a10e7d8410f24639971224ce0e282c8cd04cb
treea65d0af6b8c847078de30ee9cad49ecb853707f8
parent3bf2279411ecb430155be0f09f396f7196de692c
Make SROA more aggressive with allocas containing padding.

SROA only split up structs and arrays one level at a time, so padding can
only cause trouble if it is located in between the struct or array elements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123380 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/copy-aggregate.ll