[polly] r253862 - Use SmallVector instead of std::vector

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 02:18:23 PST 2015


Author: grosser
Date: Mon Nov 23 04:18:23 2015
New Revision: 253862

URL: http://llvm.org/viewvc/llvm-project?rev=253862&view=rev
Log:
Use SmallVector instead of std::vector

This was proposed as post-commit review comment for commit r253818.

Suggested by: Johannes Doerfert <doerfert at cs.uni-saarland.de>

Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=253862&r1=253861&r2=253862&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Mon Nov 23 04:18:23 2015
@@ -2018,7 +2018,7 @@ void Scop::removeErrorBlockDomains() {
     }
   };
 
-  std::vector<Region *> Todo = {&R};
+  SmallVector<Region *, 4> Todo = {&R};
 
   while (!Todo.empty()) {
     auto SubRegion = Todo.back();




More information about the llvm-commits mailing list