[llvm-commits] [poolalloc] r48993 - /poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
John Criswell
criswell at uiuc.edu
Mon Mar 31 12:47:26 PDT 2008
Author: criswell
Date: Mon Mar 31 14:47:26 2008
New Revision: 48993
URL: http://llvm.org/viewvc/llvm-project?rev=48993&view=rev
Log:
Record the DSNode and Pool Descriptor for every transformation of realloc().
Modified:
poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
Modified: poolalloc/trunk/lib/PoolAllocate/PASimple.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/PASimple.cpp?rev=48993&r1=48992&r2=48993&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PASimple.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PASimple.cpp Mon Mar 31 14:47:26 2008
@@ -174,6 +174,10 @@
isa<Function>(CE->getOperand(0)))
CF = cast<Function>(CE->getOperand(0));
if (CF && (CF->isDeclaration()) && (CF->getName() == "realloc")) {
+ // Associate the global pool decriptor with the DSNode
+ DSNode * Node = ECG.getNodeForValue(CI).getNode();
+ FInfo.PoolDescriptors.insert(make_pair(Node,TheGlobalPool));
+
// Mark the realloc as an instruction to delete
toDelete.push_back(ii);
More information about the llvm-commits
mailing list