[llvm-commits] [llvm] r82464 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Chris Lattner
sabre at nondot.org
Mon Sep 21 10:55:48 PDT 2009
Author: lattner
Date: Mon Sep 21 12:55:47 2009
New Revision: 82464
URL: http://llvm.org/viewvc/llvm-project?rev=82464&view=rev
Log:
big endian systems shift by bits too, hopefully this will fix the ppc
bootstrap problems.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=82464&r1=82463&r2=82464&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Mon Sep 21 12:55:47 2009
@@ -1202,7 +1202,7 @@
if (TD.isLittleEndian()) {
ShiftAmt = Offset*8;
} else {
- ShiftAmt = StoreSize-LoadSize-Offset;
+ ShiftAmt = (StoreSize-LoadSize-Offset)*8;
}
if (ShiftAmt)
More information about the llvm-commits
mailing list