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)
commit97b1076435d31488088b13a0a3b8ce320a751b28
treee50bc521149114ce5efe1f9e2f5ec917f5e60ca0
parent66b0c935538de8e851dac4cee9b62744166f7650
Do not eliminate allocas whose alignment exceeds that of the
copied-in constant, as a subsequent user may rely on over alignment.
Fixes PR12885.

llvm-svn: 157134
llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
llvm/test/Transforms/ScalarRepl/memcpy-from-global.ll