diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-23 21:07:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-23 21:07:02 +0000 |
commit | 203d53ed791bae4291fe5be593b6eab0f5278884 (patch) | |
tree | 3eb6ece6f8b9e1daaa625d820d573f2dd8211ad7 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 99bdae29924e2373a68da0421f0cad08869418b8 (diff) | |
download | bcm5719-llvm-203d53ed791bae4291fe5be593b6eab0f5278884.tar.gz bcm5719-llvm-203d53ed791bae4291fe5be593b6eab0f5278884.zip |
Use getStoreSize() instead of getStoreSizeInBits()/8.
llvm-svn: 82656
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 9de0ce82377..ba8d01217a5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1904,8 +1904,8 @@ SDValue DAGCombiner::visitAND(SDNode *N) { // For big endian targets, we need to add an offset to the pointer to // load the correct bytes. For little endian systems, we merely need to // read fewer bytes from the same pointer. - unsigned LVTStoreBytes = LoadedVT.getStoreSizeInBits()/8; - unsigned EVTStoreBytes = ExtVT.getStoreSizeInBits()/8; + unsigned LVTStoreBytes = LoadedVT.getStoreSize(); + unsigned EVTStoreBytes = ExtVT.getStoreSize(); unsigned PtrOff = LVTStoreBytes - EVTStoreBytes; unsigned Alignment = LN0->getAlignment(); SDValue NewPtr = LN0->getBasePtr(); |