[llvm-commits] [poolalloc] r56681 - /poolalloc/trunk/lib/PoolAllocate/PASimple.cpp

John Criswell criswell at uiuc.edu
Fri Sep 26 12:45:05 PDT 2008


Author: criswell
Date: Fri Sep 26 14:45:05 2008
New Revision: 56681

URL: http://llvm.org/viewvc/llvm-project?rev=56681&view=rev
Log:
Use Top-Down instead of ECGraphs.

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=56681&r1=56680&r2=56681&view=diff

==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/PASimple.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/PASimple.cpp Fri Sep 26 14:45:05 2008
@@ -105,7 +105,7 @@
   assert (ECGraphs && "No ECGraphs pass available!\n");
   if (SAFECodeEnabled) {
     TDGraphs = &getAnalysis<TDDataStructures>();   // folded inlined CBU graphs
-    assert (TDGraphs && "No ECGraphs pass available!\n");
+    assert (TDGraphs && "No TDGraphs pass available!\n");
   }
   TargetData & TD = getAnalysis<TargetData>();
 
@@ -124,14 +124,14 @@
   //
   // Merge all of the DSNodes in the DSGraphs.
   //
-  GlobalECs = &(ECGraphs->getGlobalECs());
-  CombinedDSGraph = new DSGraph (*GlobalECs, TD, &(ECGraphs->getGlobalsGraph()));
-  //CombinedDSGraph.cloneInto (ECGraphs->getGlobalsGraph());
+  GlobalECs = &(TDGraphs->getGlobalECs());
+  CombinedDSGraph = new DSGraph (*GlobalECs, TD, &(TDGraphs->getGlobalsGraph()));
+  //CombinedDSGraph.cloneInto (TDGraphs->getGlobalsGraph());
   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
-    if (ECGraphs->hasGraph (*I))
-      CombinedDSGraph->cloneInto (ECGraphs->getDSGraph(*I));
+    if (TDGraphs->hasGraph (*I))
+      CombinedDSGraph->cloneInto (TDGraphs->getDSGraph(*I));
   }
-  CombinedDSGraph->cloneInto (ECGraphs->getGlobalsGraph());
+  CombinedDSGraph->cloneInto (TDGraphs->getGlobalsGraph());
   MergeNodesInDSGraph (*CombinedDSGraph);
 
   //
@@ -165,7 +165,7 @@
   //
   // Get the DSGraph for this function.
   //
-  DSGraph &ECG = ECGraphs->getDSGraph(F);
+  DSGraph &ECG = TDGraphs->getDSGraph(F);
 
   for (Function::iterator i = F.begin(), e = F.end(); i != e; ++i)
     for (BasicBlock::iterator ii = i->begin(), ee = i->end(); ii != ee; ++ii) {





More information about the llvm-commits mailing list