From 0b2500c504156c45cd71817a9ef6749b6cde5703 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 5 Feb 2012 06:35:36 +0000 Subject: [PATCH] Simplify contains tests using 'count'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149813 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/BBVectorize.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp index 6e21a8e31f3..22cb6d5d11f 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());