Home | History | Annotate | Download | only in Scalar

Lines Matching defs:WorkList

102   // Start out with all of the instructions in the worklist...
103 std::vector<Instruction*> WorkList;
105 WorkList.push_back(&*i);
107 // Loop over the worklist finding instructions that are dead. If they are
109 // potentially dead, and work until the worklist is empty.
112 while (!WorkList.empty()) {
113 Instruction *I = WorkList.back();
114 WorkList.pop_back();
118 // instructions being used, add them to the worklist, because they might
123 WorkList.push_back(Used);
128 // Remove the instruction from the worklist if it still exists in it.
129 WorkList.erase(std::remove(WorkList.begin(), WorkList.end(), I),
130 WorkList.end());