Replace size method call of containers to empty method where appropriate
[oota-llvm.git] / lib / Transforms / Vectorize / BBVectorize.cpp
index a0ccf9d7b8cd761f35a2cb305c98c238e94d9c83..e3cc28882adb200228a9979cd027a5f3aacac79f 100644 (file)
@@ -1277,7 +1277,7 @@ namespace {
             CostSavings, FixedOrder)) continue;
 
         // J is a candidate for merging with I.
-        if (!PairableInsts.size() ||
+        if (PairableInsts.empty() ||
              PairableInsts[PairableInsts.size()-1] != I) {
           PairableInsts.push_back(I);
         }