OSDN Git Service

Fix several issues with alignment. We weren't always accounting for type
authorChandler Carruth <chandlerc@gmail.com>
Mon, 1 Oct 2012 12:16:54 +0000 (12:16 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 1 Oct 2012 12:16:54 +0000 (12:16 +0000)
commit673850aa2dceb8fe1b7a20b72339bf803af8609f
tree36c32dd5a1769c76218f88ba8c118ea451d27d7a
parent90012586f79895a8104e1e65689041fec52d788d
Fix several issues with alignment. We weren't always accounting for type
alignment requirements of the new alloca. As one consequence which was
reported as a bug by Duncan, we overaligned memcpy calls to ranges of
allocas after they were rewritten to types with lower alignment
requirements. Other consquences are possible, but I don't have any test
cases for them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164937 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/alignment.ll