1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Revert r313753: "Fix a -Wsign-compare warning in LoopAccessAnalysis.cpp"

llvm-svn: 313757
This commit is contained in:
Alexander Kornienko 2017-09-20 14:52:56 +00:00
parent 9de2bddca5
commit 8006791875

View File

@ -1143,8 +1143,7 @@ bool llvm::sortLoadAccesses(ArrayRef<Value *> VL, const DataLayout &DL,
// The pointers may not have a constant offset from each other, or SCEV // The pointers may not have a constant offset from each other, or SCEV
// may just not be smart enough to figure out they do. Regardless, // may just not be smart enough to figure out they do. Regardless,
// there's nothing we can do. // there's nothing we can do.
if (!Diff || Diff->getAPInt().abs().getSExtValue() > if (!Diff || Diff->getAPInt().abs().getSExtValue() > (VL.size() - 1) * Size)
static_cast<int64_t>((VL.size() - 1) * Size))
return false; return false;
OffValPairs.emplace_back(Diff->getAPInt().getSExtValue(), Val); OffValPairs.emplace_back(Diff->getAPInt().getSExtValue(), Val);