[llvm-commits] [poolalloc] r98792 - in /poolalloc/trunk/lib/DSA: BottomUpClosure.cpp Local.cpp
Andrew Lenharth
andrewl at lenharth.org
Wed Mar 17 18:00:31 PDT 2010
Author: alenhar2
Date: Wed Mar 17 20:00:31 2010
New Revision: 98792
URL: http://llvm.org/viewvc/llvm-project?rev=98792&view=rev
Log:
calls sites that will never contain useful information are not added
Modified:
poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
poolalloc/trunk/lib/DSA/Local.cpp
Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=98792&r1=98791&r2=98792&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Wed Mar 17 20:00:31 2010
@@ -73,7 +73,7 @@
svset<const Function*> marked;
for (DSCallGraph::root_iterator ii = callgraph.root_begin(),
ee = callgraph.root_end(); ii != ee; ++ii) {
- errs() << (*ii)->getName() << " ";
+ errs() << (*ii)->getName() << "\n";
DSGraph* G = postOrder(*ii, marked);
CloneAuxIntoGlobal(G);
}
Modified: poolalloc/trunk/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Local.cpp?rev=98792&r1=98791&r2=98792&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Local.cpp (original)
+++ poolalloc/trunk/lib/DSA/Local.cpp Wed Mar 17 20:00:31 2010
@@ -752,8 +752,8 @@
//Can't do much about inline asm (yet!)
if (isa<InlineAsm>(CS.getCalledValue())) return;
- //uninteresting call
- if (!DSCallGraph::hasPointers(CS))
+ //uninteresting direct call
+ if (CS.getCalledFunction() && !DSCallGraph::hasPointers(CS))
return;
More information about the llvm-commits
mailing list