Fix an issue where we failed to adjust the alignment constraint on
authorChandler Carruth <chandlerc@gmail.com>
Wed, 3 Oct 2012 08:26:28 +0000 (08:26 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 3 Oct 2012 08:26:28 +0000 (08:26 +0000)
commit322e9ba2cb92330a345bd6e606c64a7b16bd929f
tree651920320bca39555bbba4590801e6f288113914
parentf710fb14ee951fe533b94eb1046d422e94d4f1f3
Fix an issue where we failed to adjust the alignment constraint on
a memcpy to reflect that '0' has a different meaning when applied to
a load or store. Now we correctly use underaligned loads and stores for
the test case added.

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