Lines Matching refs:WorkList
169 std::vector<Value*> WorkList; in tryPromoteAllocaToVector() local
176 WorkList.push_back(AllocaUser); in tryPromoteAllocaToVector()
194 WorkList.push_back(GEPUser); in tryPromoteAllocaToVector()
203 for (std::vector<Value*>::iterator I = WorkList.begin(), in tryPromoteAllocaToVector()
204 E = WorkList.end(); I != E; ++I) { in tryPromoteAllocaToVector()
242 static bool collectUsesWithPtrTypes(Value *Val, std::vector<Value*> &WorkList) { in collectUsesWithPtrTypes() argument
245 if(std::find(WorkList.begin(), WorkList.end(), User) != WorkList.end()) in collectUsesWithPtrTypes()
253 WorkList.push_back(User); in collectUsesWithPtrTypes()
271 WorkList.push_back(User); in collectUsesWithPtrTypes()
273 Success &= collectUsesWithPtrTypes(User, WorkList); in collectUsesWithPtrTypes()
306 std::vector<Value*> WorkList; in visitAlloca() local
308 if (!collectUsesWithPtrTypes(&I, WorkList)) { in visitAlloca()
358 for (std::vector<Value*>::iterator i = WorkList.begin(), in visitAlloca()
359 e = WorkList.end(); i != e; ++i) { in visitAlloca()