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 | 30844c3950ee869eb430ce718b5a994fabed7aa7 (patch) | |
tree | 362324f6a025d66c8fdd1c8b60fb0c149dcf66fc /lib/Analysis/IVUsers.cpp | |
parent | c71c0e958c55bbf389ba27edfa9a7d4206a8fe2c (diff) | |
download | external_llvm-30844c3950ee869eb430ce718b5a994fabed7aa7.zip external_llvm-30844c3950ee869eb430ce718b5a994fabed7aa7.tar.gz external_llvm-30844c3950ee869eb430ce718b5a994fabed7aa7.tar.bz2 |
Fix a thinko; isNotAlreadyContainedIn had a built-in negative, so the
condition was inverted when the code was converted to contains().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IVUsers.cpp')
-rw-r--r-- | lib/Analysis/IVUsers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index 7898679..bf40323 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/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; |