forked from OSchip/llvm-project
parent
e63d087bcb
commit
76229bc128
|
@ -116,7 +116,7 @@ unsigned DFSPass(DominatorTreeBase<typename GraphT::NodeType>& DT,
|
|||
template<class GraphT>
|
||||
void Compress(DominatorTreeBase<typename GraphT::NodeType>& DT,
|
||||
typename GraphT::NodeType *VIn) {
|
||||
std::vector<typename GraphT::NodeType*> Work;
|
||||
SmallVector<typename GraphT::NodeType*, 32> Work;
|
||||
SmallPtrSet<typename GraphT::NodeType*, 32> Visited;
|
||||
typename DominatorTreeBase<typename GraphT::NodeType>::InfoRec &VInVAInfo =
|
||||
DT.Info[DT.Vertex[DT.Info[VIn].Ancestor]];
|
||||
|
|
|
@ -1032,10 +1032,8 @@ static bool AddReachableCodeToWorklist(BasicBlock *BB,
|
|||
bool MadeIRChange = false;
|
||||
SmallVector<BasicBlock*, 256> Worklist;
|
||||
Worklist.push_back(BB);
|
||||
|
||||
std::vector<Instruction*> InstrsForInstCombineWorklist;
|
||||
InstrsForInstCombineWorklist.reserve(128);
|
||||
|
||||
SmallVector<Instruction*, 128> InstrsForInstCombineWorklist;
|
||||
SmallPtrSet<ConstantExpr*, 64> FoldedConstants;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue