DAG combine should not increase alignment of loads / stores with alignment less
authorEvan Cheng <evan.cheng@apple.com>
Mon, 28 Nov 2011 20:42:56 +0000 (20:42 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 28 Nov 2011 20:42:56 +0000 (20:42 +0000)
commit1c487869f5d47a7ad89d21ed9912bf89f25e3b72
treecde919c751e7eb9430c088f0cb0d02f7047a395c
parent678cda052cab001bb47f95eaee60b0e3e458b753
DAG combine should not increase alignment of loads / stores with alignment less
than ABI alignment. These are loads / stores from / to "packed" data structures.
Their alignments are intentionally under-specified.

rdar://10301431

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145273 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM/2011-11-28-DAGCombineBug.ll [new file with mode: 0644]
test/CodeGen/X86/widen_load-1.ll