Replace size method call of containers to empty method where appropriate
[oota-llvm.git] / lib / Transforms / Vectorize / SLPVectorizer.cpp
index bb2dcbc3e14f3182215df5ff1838dd04adad5f4b..1c264f0a2df401c77983c632713c0efa12593044 100644 (file)
@@ -1760,7 +1760,7 @@ int BoUpSLP::getTreeCost() {
 
   // We only vectorize tiny trees if it is fully vectorizable.
   if (VectorizableTree.size() < 3 && !isFullyVectorizableTinyTree()) {
-    if (!VectorizableTree.size()) {
+    if (VectorizableTree.empty()) {
       assert(!ExternalUses.size() && "We should not have any external users");
     }
     return INT_MAX;