1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Another bugfix, disable "spurious" output.

You gotta love spurious

llvm-svn: 10990
This commit is contained in:
Chris Lattner 2004-01-28 01:19:52 +00:00
parent b0d7b564dd
commit 10881df6e2

View File

@ -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();
}
}
}