[llvm-commits] [poolalloc] r120557 - /poolalloc/trunk/lib/DSA/TopDownClosure.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Tue Nov 30 21:46:44 PST 2010


Author: aggarwa4
Date: Tue Nov 30 23:46:44 2010
New Revision: 120557

URL: http://llvm.org/viewvc/llvm-project?rev=120557&view=rev
Log:
replace section by call to cloneIntoGlobals.

Modified:
    poolalloc/trunk/lib/DSA/TopDownClosure.cpp

Modified: poolalloc/trunk/lib/DSA/TopDownClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/TopDownClosure.cpp?rev=120557&r1=120556&r2=120557&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/TopDownClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/TopDownClosure.cpp Tue Nov 30 23:46:44 2010
@@ -25,12 +25,7 @@
 #include "llvm/ADT/Statistic.h"
 using namespace llvm;
 
-#if 0
-#define TIME_REGION(VARNAME, DESC) \
-   NamedRegionTimer VARNAME(DESC)
-#else
 #define TIME_REGION(VARNAME, DESC)
-#endif
 
 namespace {
   RegisterPass<TDDataStructures>   // Register the pass
@@ -299,7 +294,8 @@
   DSG->computeExternalFlags(ExtFlags);
   DSG->computeIntPtrFlags();
 
-  {
+  cloneIntoGlobals(DSG);
+  /*{
     DSGraph* GG = DSG->getGlobalsGraph();
     ReachabilityCloner RC(GG, DSG,
                           DSGraph::DontCloneCallNodes |
@@ -308,7 +304,7 @@
            GI = DSG->getScalarMap().global_begin(),
            E = DSG->getScalarMap().global_end(); GI != E; ++GI)
       RC.getClonedNH(DSG->getNodeForValue(*GI));
-  }
+  }*/
  
   //
   // Delete dead nodes.  Treat globals that are unreachable as dead also.
@@ -323,11 +319,7 @@
   //
   //  So, for now, just remove dead nodes but leave the globals alone.
   //
-#if 0
-  DSG->removeDeadNodes(DSGraph::RemoveUnreachableGlobals);
-#else
   DSG->removeDeadNodes(0);
-#endif
 
   // We are done with computing the current TD Graph!  Finally, before we can
   // finish processing this function, we figure out which functions it calls and





More information about the llvm-commits mailing list