mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +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:
@ -1362,7 +1362,9 @@ static void removeIdenticalCalls(std::vector<DSCallSite> &Calls) {
|
|||||||
// eliminate it.
|
// eliminate it.
|
||||||
if (CS.isIndirectCall() && CS.getCalleeNode()->getNumReferrers() == 1 &&
|
if (CS.isIndirectCall() && CS.getCalleeNode()->getNumReferrers() == 1 &&
|
||||||
CS.getCalleeNode()->getNodeFlags() == 0) { // No useful info?
|
CS.getCalleeNode()->getNodeFlags() == 0) { // No useful info?
|
||||||
|
#ifndef NDEBUG
|
||||||
std::cerr << "WARNING: Useless call site found??\n";
|
std::cerr << "WARNING: Useless call site found??\n";
|
||||||
|
#endif
|
||||||
CS.swap(Calls.back());
|
CS.swap(Calls.back());
|
||||||
Calls.pop_back();
|
Calls.pop_back();
|
||||||
--i;
|
--i;
|
||||||
@ -1498,7 +1500,8 @@ void DSGraph::removeTriviallyDeadNodes() {
|
|||||||
if (Node->getNumReferrers() == Globals.size()) {
|
if (Node->getNumReferrers() == Globals.size()) {
|
||||||
for (unsigned j = 0, e = Globals.size(); j != e; ++j)
|
for (unsigned j = 0, e = Globals.size(); j != e; ++j)
|
||||||
ScalarMap.erase(Globals[j]);
|
ScalarMap.erase(Globals[j]);
|
||||||
Node->makeNodeDead();
|
if (Node->hasNoReferrers())
|
||||||
|
Node->makeNodeDead();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user