mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 01:12:59 +00:00
Another bugfix, disable "spurious" output.
You gotta love spurious git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
352e31f572
commit
64507e39da
@ -1362,7 +1362,9 @@ static void removeIdenticalCalls(std::vector<DSCallSite> &Calls) {
|
||||
// eliminate it.
|
||||
if (CS.isIndirectCall() && CS.getCalleeNode()->getNumReferrers() == 1 &&
|
||||
CS.getCalleeNode()->getNodeFlags() == 0) { // No useful info?
|
||||
#ifndef NDEBUG
|
||||
std::cerr << "WARNING: Useless call site found??\n";
|
||||
#endif
|
||||
CS.swap(Calls.back());
|
||||
Calls.pop_back();
|
||||
--i;
|
||||
@ -1498,7 +1500,8 @@ void DSGraph::removeTriviallyDeadNodes() {
|
||||
if (Node->getNumReferrers() == Globals.size()) {
|
||||
for (unsigned j = 0, e = Globals.size(); j != e; ++j)
|
||||
ScalarMap.erase(Globals[j]);
|
||||
Node->makeNodeDead();
|
||||
if (Node->hasNoReferrers())
|
||||
Node->makeNodeDead();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user