Really remove dead nodes from isel queue.

llvm-svn: 30923
This commit is contained in:
Evan Cheng 2006-10-12 23:18:52 +00:00
parent f48558b3b6
commit c7283044d1

View File

@ -3723,7 +3723,8 @@ OS << " unsigned NumKilled = ISelKilled.size();\n";
OS << " if (NumKilled) {\n";
OS << " for (unsigned i = 0; i != NumKilled; ++i) {\n";
OS << " SDNode *Temp = ISelKilled[i];\n";
OS << " std::remove(ISelQueue.begin(), ISelQueue.end(), Temp);\n";
OS << " ISelQueue.erase(std::remove(ISelQueue.begin(), ISelQueue.end(), "
<< "Temp), ISelQueue.end());\n";
OS << " };\n";
OS << " std::make_heap(ISelQueue.begin(), ISelQueue.end(), isel_sort());\n";
OS << " ISelKilled.clear();\n";