summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-04-20 05:17:47 +0000
committerNadav Rotem <nrotem@apple.com>2013-04-20 05:17:47 +0000
commit5ed99674e95304809e9fce39d55c4f212eda6f42 (patch)
tree46d90a4f73c38c65cd12291258a21da241f1f75d /llvm/lib
parent0f64e21bb92a586b16680a8749d3c2c5a2f1e09b (diff)
downloadbcm5719-llvm-5ed99674e95304809e9fce39d55c4f212eda6f42.tar.gz
bcm5719-llvm-5ed99674e95304809e9fce39d55c4f212eda6f42.zip
Use 64bit arithmetic for calculating distance between pointers.
llvm-svn: 179927
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/VecUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VecUtils.cpp b/llvm/lib/Transforms/Vectorize/VecUtils.cpp
index a69646336c8..e1ff3d91e16 100644
--- a/llvm/lib/Transforms/Vectorize/VecUtils.cpp
+++ b/llvm/lib/Transforms/Vectorize/VecUtils.cpp
@@ -94,11 +94,11 @@ bool BoUpSLP::isConsecutiveAccess(Value *A, Value *B) {
// Non constant distance.
if (!ConstOffSCEV) return false;
- unsigned Offset = ConstOffSCEV->getValue()->getSExtValue();
+ int64_t Offset = ConstOffSCEV->getValue()->getSExtValue();
Type *Ty = cast<PointerType>(PtrA->getType())->getElementType();
// The Instructions are connsecutive if the size of the first load/store is
// the same as the offset.
- unsigned Sz = DL->getTypeStoreSize(Ty);
+ int64_t Sz = DL->getTypeStoreSize(Ty);
return ((-Offset) == Sz);
}
OpenPOWER on IntegriCloud