Do not eliminate allocas whose alignment exceeds that of the
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 19 May 2012 22:52:10 +0000 (22:52 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sat, 19 May 2012 22:52:10 +0000 (22:52 +0000)
commit9012c57e18d76d562b1f3e60bf19cccefa7b793e
treeaf18137e2c1f21f54c5bd534d9d53efc1185cc96
parentb8f2f29467b86a11e777e2ce071caf15ae6fcf75
Do not eliminate allocas whose alignment exceeds that of the
copied-in constant, as a subsequent user may rely on over alignment.
Fixes PR12885.

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