Home | History | Annotate | Download | only in Scalar

Lines Matching defs:WorkList

94   // Start out with all of the instructions in the worklist...
95 std::vector<Instruction*> WorkList;
97 WorkList.push_back(&*i);
99 // Loop over the worklist finding instructions that are dead. If they are
101 // potentially dead, and work until the worklist is empty.
104 while (!WorkList.empty()) {
105 Instruction *I = WorkList.back();
106 WorkList.pop_back();
110 // instructions being used, add them to the worklist, because they might
115 WorkList.push_back(Used);
120 // Remove the instruction from the worklist if it still exists in it.
121 WorkList.erase(std::remove(WorkList.begin(), WorkList.end(), I),
122 WorkList.end());