summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-21 17:55:47 +0000
committerChris Lattner <sabre@nondot.org>2009-09-21 17:55:47 +0000
commit247053867e22dd49c9c15c7c4d43cfa5e88b8fe9 (patch)
treee86d3e26565f68750af75377189c5d2284bf1404 /llvm/lib
parent43d6830ea017b6cb99836676ecdc364de5b929c0 (diff)
downloadbcm5719-llvm-247053867e22dd49c9c15c7c4d43cfa5e88b8fe9.tar.gz
bcm5719-llvm-247053867e22dd49c9c15c7c4d43cfa5e88b8fe9.zip
big endian systems shift by bits too, hopefully this will fix the ppc
bootstrap problems. llvm-svn: 82464
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/GVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index b549e803177..a2d210a36f2 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -1202,7 +1202,7 @@ static Value *GetStoreValueForLoad(Value *SrcVal, unsigned Offset,
if (TD.isLittleEndian()) {
ShiftAmt = Offset*8;
} else {
- ShiftAmt = StoreSize-LoadSize-Offset;
+ ShiftAmt = (StoreSize-LoadSize-Offset)*8;
}
if (ShiftAmt)
OpenPOWER on IntegriCloud