[llvm-commits] [poolalloc] r119465 - /poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Nov 16 22:08:47 PST 2010
Author: aggarwa4
Date: Wed Nov 17 00:08:47 2010
New Revision: 119465
URL: http://llvm.org/viewvc/llvm-project?rev=119465&view=rev
Log:
Formatting.
No functionality change.
Modified:
poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp
Modified: poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp?rev=119465&r1=119464&r2=119465&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp (original)
+++ poolalloc/trunk/lib/DSA/CompleteBottomUp.cpp Wed Nov 17 00:08:47 2010
@@ -46,9 +46,9 @@
//
// Make sure we have a DSGraph for all declared functions in the Module.
- // formGlobalECs assumes that DSInfo is populated with a list of
- // DSgraphs for all the functions.
-
+ // formGlobalECs assumes that DSInfo is populated with a list of
+ // DSgraphs for all the functions.
+
for (Module::iterator F = M.begin(); F != M.end(); ++F) {
if (!(F->isDeclaration()))
getOrCreateGraph(F);
@@ -101,8 +101,8 @@
// we have an entry in the GlobalsGraph
// If any function in an SCC is a callee of an indirect function
- // call, the DScallgraph contains the leader of the SCC as the
- // callee of the indirect call.
+ // call, the DScallgraph contains the leader of the SCC as the
+ // callee of the indirect call.
// The leasder of the SCC may not have an entry in the Globals
// Graph, but at least one of the functions in the SCC
// should have an entry in the GlobalsGraph
@@ -125,13 +125,12 @@
sccee = callgraph.scc_end(F);
bool flag = false;
for(; sccii != sccee; ++sccii) {
- flag |= SM.count(SM.getLeaderForGlobal(*sccii));
+ flag |= SM.count(SM.getLeaderForGlobal(*sccii));
}
assert (flag &&
"Indirect function callee not in globals?");
}
}
-
}
#endif
@@ -158,20 +157,20 @@
DSCallGraph::callee_iterator csi = callgraph.callee_begin(*ii),
cse = callgraph.callee_end(*ii);
-
- // We get all the callees, and then for all functions in that SCC, find the
- // ones that have entries in the GlobalsGraph.
+
+ // We get all the callees, and then for all functions in that SCC, find the
+ // ones that have entries in the GlobalsGraph.
// We merge all the functions in the SCC that have entries, and then move
// on to the next callee and repeat.
- // If an SCC has functions that have entries in the GlobalsGraph, and are
+ // If an SCC has functions that have entries in the GlobalsGraph, and are
// targets of an indirect function call site, they will be merged.
-
- // However, if an SCC has functions, that have entries in the GlobalsGraph,
- // bur are not the targets of an indirect function call site, they will not
+
+ // However, if an SCC has functions, that have entries in the GlobalsGraph,
+ // bur are not the targets of an indirect function call site, they will not
// be merged by CBU.
-
+
// This NH starts off empty, but ends up merging them all together
DSNodeHandle calleesNH;
More information about the llvm-commits
mailing list