The alignment of the pointer part of the store instruction may have an
authorBill Wendling <isanbard@gmail.com>
Fri, 16 Mar 2012 07:40:08 +0000 (07:40 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 16 Mar 2012 07:40:08 +0000 (07:40 +0000)
commitff030fd3005e05a2f73a0008faac02063c2582bb
tree16958ecd26fcfd24950c12547dfe328114ce5057
parent5a4c790c06a8884b208611f63d8623da9a93b7e7
The alignment of the pointer part of the store instruction may have an
alignment. If that's the case, then we want to make sure that we don't increase
the alignment of the store instruction. Because if we increase it to be "more
aligned" than the pointer, code-gen may use instructions which require a greater
alignment than the pointer guarantees.
<rdar://problem/11043589>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152907 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
test/Transforms/InstCombine/2012-03-16-StoreAlignment.ll [new file with mode: 0644]