[llvm-commits] [poolalloc] r112645 - /poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Aug 31 14:47:33 PDT 2010
Author: aggarwa4
Date: Tue Aug 31 16:47:33 2010
New Revision: 112645
URL: http://llvm.org/viewvc/llvm-project?rev=112645&view=rev
Log:
The \!hasDSGraph was wrong, as all functions have DSGraphs at this point. The check needs to be whether or not the function has been visited yet.
Modified:
poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=112645&r1=112644&r2=112645&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Tue Aug 31 16:47:33 2010
@@ -327,7 +327,7 @@
// Calculate the graphs for any functions that are unreachable from main...
//
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
- if (!I->isDeclaration() && !hasDSGraph(*I)) {
+ if (!I->isDeclaration() && !ValMap.count(I)) {
if (MainFunc)
DEBUG(errs() << debugname << ": Function unreachable from main: "
<< I->getName() << "\n");
More information about the llvm-commits
mailing list