mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
Really remove dead nodes from isel queue.
llvm-svn: 30923
This commit is contained in:
parent
f48558b3b6
commit
c7283044d1
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user