[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 1 23:39:37 PDT 2003
Changes in directory llvm/lib/Analysis/DataStructure:
BottomUpClosure.cpp updated: 1.58 -> 1.59
---
Log message:
Make the BU closure keep track of which actual calls happen
Minor cleanups
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
diff -u llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.58 llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.59
--- llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.58 Tue Jul 1 11:04:18 2003
+++ llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp Tue Jul 1 23:37:48 2003
@@ -173,6 +173,9 @@
}
}
+ // Clean up the graph before we start inlining a bunch again...
+ SCCGraph->removeTriviallyDeadNodes();
+
// Now that we have one big happy family, resolve all of the call sites in
// the graph...
calculateGraph(*SCCGraph);
@@ -232,8 +235,7 @@
// Resolve the current call...
Function *Callee = *I;
- const DSCallSite &CS = I.getCallSite();
- ActualCallees.insert(std::make_pair(&CS.getCallInst(), Callee));
+ DSCallSite CS = I.getCallSite();
if (Callee->isExternal()) {
// Ignore this case, simple varargs functions we cannot stub out!
@@ -246,6 +248,8 @@
Graph.mergeInGraph(CS, *Callee, Graph, 0);
} else {
+ ActualCallees.insert(std::make_pair(&CS.getCallInst(), Callee));
+
// Get the data structure graph for the called function.
//
DSGraph &GI = getDSGraph(*Callee); // Graph to inline
More information about the llvm-commits
mailing list