Skip to content

Commit

Permalink
Revert r313753: "Fix a -Wsign-compare warning in LoopAccessAnalysis.cpp"
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313757 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
alexfh committed Sep 20, 2017
1 parent 652f5e6 commit 2d05b60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Analysis/LoopAccessAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d05b60

Please sign in to comment.