From 19ad784dacc10247d47d0928f6222390c60fbb4b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Sep 2009 17:55:47 +0000 Subject: [PATCH] big endian systems shift by bits too, hopefully this will fix the ppc bootstrap problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82464 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index b549e803177..a2d210a36f2 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/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)