When rewriting the pointer operand to a load or store which has
authorChandler Carruth <chandlerc@gmail.com>
Wed, 26 Sep 2012 10:45:28 +0000 (10:45 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 26 Sep 2012 10:45:28 +0000 (10:45 +0000)
commit238fd1591ee004130ca1e857cda1d270b15efe3d
tree49a9f9787eebe4d515045d08cd9f189c624b58d4
parent81b001a2209be99e42aceed74f411c7cefc4d022
When rewriting the pointer operand to a load or store which has
alignment guarantees attached, re-compute the alignment so that we
consider offsets which impact alignment.

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