aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-03-26 09:32:07 +0000
committerBill Wendling <isanbard@gmail.com>2011-03-26 09:32:07 +0000
commit1a4d58af0923123b655a6c0c553c62a266e1ebbc (patch)
treec50251dfaba14b0a365f8cdaad44d25c496c127b /lib/Transforms
parent150c4a1a89478f36af776f9146288afd528b33da (diff)
downloadexternal_llvm-1a4d58af0923123b655a6c0c553c62a266e1ebbc.zip
external_llvm-1a4d58af0923123b655a6c0c553c62a266e1ebbc.tar.gz
external_llvm-1a4d58af0923123b655a6c0c553c62a266e1ebbc.tar.bz2
Simplification noticed by Frits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/DeadStoreElimination.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 7d957f0..b948bed 100644
--- a/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -361,9 +361,8 @@ static bool isCompleteOverwrite(const AliasAnalysis::Location &Later,
//
// |--earlier--|
// |----- later ------|
- if ((EarlierOff == LaterOff && Earlier.Size <= Later.Size) ||
- (EarlierOff > LaterOff &&
- EarlierOff + Earlier.Size <= LaterOff + Later.Size))
+ if (EarlierOff >= LaterOff &&
+ EarlierOff + Earlier.Size <= LaterOff + Later.Size)
return true;
// Otherwise, they don't completely overlap.