Divide the primitive size in bits by eight so the initial load's alignment is in
authorRichard Diamond <wichard@vitalitystudios.com>
Wed, 5 Aug 2015 22:10:57 +0000 (22:10 +0000)
committerRichard Diamond <wichard@vitalitystudios.com>
Wed, 5 Aug 2015 22:10:57 +0000 (22:10 +0000)
commitfceb978fd36cb74ec8f457d927484a38bf51ea28
treeb1d8a589b053f5e5f847c34369f9cc0b603a4cae
parent3f81410d8cebd10248c2201c701ae8308a0ca2d8
Divide the primitive size in bits by eight so the initial load's alignment is in
bytes as expected. Tested with the included unit test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244155 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AtomicExpandPass.cpp
test/Transforms/AtomicExpand/expand-atomic-rmw-initial-load.ll [new file with mode: 0644]