diff options
author | Alexander Kornienko <alexfh@google.com> | 2017-09-20 14:52:56 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2017-09-20 14:52:56 +0000 |
commit | 7302344bdf2b107001364a37e3d48787af521fc3 (patch) | |
tree | 6711cca061b794624fcc4badb00f3f97517e9b99 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | 30d26086372cfb99b0829e676d075f95e2b9c35a (diff) | |
download | bcm5719-llvm-7302344bdf2b107001364a37e3d48787af521fc3.tar.gz bcm5719-llvm-7302344bdf2b107001364a37e3d48787af521fc3.zip |
Revert r313753: "Fix a -Wsign-compare warning in LoopAccessAnalysis.cpp"
llvm-svn: 313757
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 3b23b3314b9..efc3bc950b3 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -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 // may just not be smart enough to figure out they do. Regardless, // there's nothing we can do. - if (!Diff || Diff->getAPInt().abs().getSExtValue() > - static_cast<int64_t>((VL.size() - 1) * Size)) + if (!Diff || Diff->getAPInt().abs().getSExtValue() > (VL.size() - 1) * Size) return false; OffValPairs.emplace_back(Diff->getAPInt().getSExtValue(), Val); |