diff options
| author | Dan Gohman <gohman@apple.com> | 2009-12-14 17:31:01 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-12-14 17:31:01 +0000 |
| commit | fbeec7270c5e10de04a7077a87703e9533edc68e (patch) | |
| tree | 8e9670892f0df40d073fae2c083d3ee0e7ff77ee /llvm/lib/Analysis/IVUsers.cpp | |
| parent | 540c3b0e50b7955ddb44d63f893d78a0434b9ceb (diff) | |
| download | bcm5719-llvm-fbeec7270c5e10de04a7077a87703e9533edc68e.tar.gz bcm5719-llvm-fbeec7270c5e10de04a7077a87703e9533edc68e.zip | |
Fix a thinko; isNotAlreadyContainedIn had a built-in negative, so the
condition was inverted when the code was converted to contains().
llvm-svn: 91295
Diffstat (limited to 'llvm/lib/Analysis/IVUsers.cpp')
| -rw-r--r-- | llvm/lib/Analysis/IVUsers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp index 7898679c8eb..bf403238bb4 100644 --- a/llvm/lib/Analysis/IVUsers.cpp +++ b/llvm/lib/Analysis/IVUsers.cpp @@ -53,7 +53,7 @@ static bool containsAddRecFromDifferentLoop(const SCEV *S, Loop *L) { if (newLoop == L) return false; // if newLoop is an outer loop of L, this is OK. - if (!newLoop->contains(L->getHeader())) + if (newLoop->contains(L->getHeader())) return false; } return true; |

