[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Apr 2 13:41:06 PST 2005
Changes in directory llvm-poolalloc/lib/PoolAllocate:
PoolAllocate.cpp updated: 1.116 -> 1.117
---
Log message:
remove some timers add some new ones.
---
Diffs of the changes: (+3 -5)
PoolAllocate.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
Index: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.116 llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.117
--- llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.116 Sat Apr 2 15:21:44 2005
+++ llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp Sat Apr 2 15:40:49 2005
@@ -92,13 +92,12 @@
if (SetupGlobalPools(M))
return true;
-{TIME_REGION(X, "FindFunctionPoolArgs");
// Loop over the functions in the original program finding the pool desc.
// arguments necessary for each function that is indirectly callable.
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
if (!I->isExternal() && ECGraphs->ContainsDSGraphFor(*I))
FindFunctionPoolArgs(*I);
-}
+
std::map<Function*, Function*> FuncMap;
// Now clone a function using the pool arg list obtained in the previous pass
@@ -351,17 +350,15 @@
// Perform the cloning.
std::vector<ReturnInst*> Returns;
-{TIME_REGION(X, "CFI");
+{TIME_REGION(X, "CloneFunctionInto");
CloneFunctionInto(New, &F, ValueMap, Returns);
}
// Invert the ValueMap into the NewToOldValueMap
std::map<Value*, const Value*> &NewToOldValueMap = FI.NewToOldValueMap;
-{TIME_REGION(X, "N2O Map Construct");
for (std::map<const Value*, Value*>::iterator I = ValueMap.begin(),
E = ValueMap.end(); I != E; ++I)
NewToOldValueMap.insert(std::make_pair(I->second, I->first));
-}
return FI.Clone = New;
}
@@ -482,6 +479,7 @@
std::map<const DSNode*,
Value*> &PoolDescriptors) {
if (NodesToPA.empty()) return;
+ TIME_REGION(X, "CreatePools");
std::vector<Heuristic::OnePool> ResultPools;
CurHeuristic->AssignToPools(NodesToPA, &F, *NodesToPA[0]->getParentGraph(),
More information about the llvm-commits
mailing list