mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 21:00:00 +00:00
Really remove dead nodes from isel queue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30923 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
500d8bff20
commit
4f77616c28
@ -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