Fix some load/store logic that would be wrong for
authorDuncan Sands <baldrick@free.fr>
Fri, 9 Nov 2007 08:57:19 +0000 (08:57 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 9 Nov 2007 08:57:19 +0000 (08:57 +0000)
commitc6fa170b4db6659c411e77a9a5144ae2e92136c7
tree4c3db1fd150addb8ddb1793a79cf3a443c714fb8
parentf6bd0ce4c9a9c08500ab50cea322770c611d1af3
Fix some load/store logic that would be wrong for
apints on big-endian machines if the bitwidth is
not a multiple of 8.  Introduce a new helper,
MVT::getStoreSizeInBits, and use it.

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