Factor out the code for computing an alignment value, and make it
authorDan Gohman <gohman@apple.com>
Tue, 8 Jul 2008 23:46:32 +0000 (23:46 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 8 Jul 2008 23:46:32 +0000 (23:46 +0000)
commit9c6e70eca9a49c146b26621cbcbb9464ceeac024
tree8cd3c3d3f6d1463ea9590acdff3ce3f62bac3510
parent0966f0f0e4902481b2d0e4d65813a5d32207192c
Factor out the code for computing an alignment value, and make it
available to getAtomic in addition to just getLoad and getStore,
to prevent MachineMemOperands with 0 alignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53261 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp