[llvm-commits] [llvm] r80007 - /llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Owen Anderson
resistor at mac.com
Tue Aug 25 10:35:37 PDT 2009
Author: resistor
Date: Tue Aug 25 12:35:37 2009
New Revision: 80007
URL: http://llvm.org/viewvc/llvm-project?rev=80007&view=rev
Log:
Switch to SmallVector.
Modified:
llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp?rev=80007&r1=80006&r2=80007&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp Tue Aug 25 12:35:37 2009
@@ -189,14 +189,14 @@
// Old dominates New. New node domiantes all other nodes dominated
//by Old.
DomTreeNode *OldNode = DT->getNode(*I);
- std::vector<DomTreeNode *> Children;
+ SmallVector<DomTreeNode*, 8> Children;
for (DomTreeNode::iterator DI = OldNode->begin(), DE = OldNode->end();
DI != DE; ++DI)
Children.push_back(*DI);
DomTreeNode *NewNode = DT->addNewBlock(New, *I);
- for (std::vector<DomTreeNode *>::iterator I = Children.begin(),
+ for (SmallVector<DomTreeNode*, 8>::iterator I = Children.begin(),
E = Children.end(); I != E; ++I)
DT->changeImmediateDominator(*I, NewNode);
}
More information about the llvm-commits
mailing list