diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-02-05 06:35:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-02-05 06:35:36 +0000 |
commit | 0b2500c504156c45cd71817a9ef6749b6cde5703 (patch) | |
tree | 40d1c84b3bd29f4599ab45fcdb8501587e228c52 | |
parent | 5c05f2b99e6d377786b4384925e61577f385f49c (diff) | |
download | external_llvm-0b2500c504156c45cd71817a9ef6749b6cde5703.zip external_llvm-0b2500c504156c45cd71817a9ef6749b6cde5703.tar.gz external_llvm-0b2500c504156c45cd71817a9ef6749b6cde5703.tar.bz2 |
Simplify contains tests using 'count'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149813 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Vectorize/BBVectorize.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp index 6e21a8e..22cb6d5 100644 --- a/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/lib/Transforms/Vectorize/BBVectorize.cpp @@ -967,8 +967,7 @@ namespace { return true; } - if (CurrentPairs.count(C->second) != 0 && - Visited.count(C->second) == 0) + if (CurrentPairs.count(C->second) && !Visited.count(C->second)) Q.push_back(C->second); } } while (!Q.empty()); |