[llvm-commits] [poolalloc] r117578 - /poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Thu Oct 28 12:22:43 PDT 2010


Author: aggarwa4
Date: Thu Oct 28 14:22:43 2010
New Revision: 117578

URL: http://llvm.org/viewvc/llvm-project?rev=117578&view=rev
Log:
Removing a check for Incompleteness. This code is broken anyway. 
Do not add any checks and let poolalloc query the DSGraph for now.

Modified:
    poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp

Modified: poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp?rev=117578&r1=117577&r2=117578&view=diff
==============================================================================
--- poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp (original)
+++ poolalloc/trunk/lib/PoolAllocate/TransformFunctionBody.cpp Thu Oct 28 14:22:43 2010
@@ -942,7 +942,6 @@
       std::vector<const Function*> g;
       d->addFullFunctionList(g);
       
-      if(!(d->isIncompleteNode()) && !(d->isExternalNode())) {
       //if(!(d->isIncompleteNode()) && !(d->isExternalNode()) && !(d->isCollapsedNode())) {
       
       //
@@ -956,11 +955,10 @@
       // same DSGraph, so it doesn't matter which one we use as long as we use
       // a function that *has* a DSGraph.
       //
-        for (unsigned index = 0; index < g.size(); ++index) {
-          if (Graphs.hasDSGraph (*(g[index]))) {
-            CF = g[index];
-            break;
-          }
+      for (unsigned index = 0; index < g.size(); ++index) {
+        if (Graphs.hasDSGraph (*(g[index]))) {
+          CF = g[index];
+          break;
         }
       }
     }





More information about the llvm-commits mailing list