[llvm-commits] [poolalloc] r117248 - /poolalloc/trunk/lib/DSA/Local.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Sun Oct 24 16:48:52 PDT 2010


Author: aggarwa4
Date: Sun Oct 24 18:48:52 2010
New Revision: 117248

URL: http://llvm.org/viewvc/llvm-project?rev=117248&view=rev
Log:
Fix to the changes for arrays.

Comment for last commit: 

1. Array Nodes are no longer folded. Only if two arrays of 
   elements of different types alias, then folding happens.
2. Arrays inside structs cause the node to be folded.

3. The optimization for removeIdenticalCallNodes has been 
   turned on again.It deletes, direct call sites if they 
   provide no new information. Indirect call sites, may be 
   merged, if it causes no loss of information. Call graph
   construction in such cases is now fixed. 

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

Modified: poolalloc/trunk/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Local.cpp?rev=117248&r1=117247&r2=117248&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Local.cpp (original)
+++ poolalloc/trunk/lib/DSA/Local.cpp Sun Oct 24 18:48:52 2010
@@ -1085,8 +1085,7 @@
   // pointer we've just found.
   //
   if (isa<PointerType>(Ty)) {
-    NHN->setArrayMarker();
-  //  NHN->mergeTypeInfo(Ty, NH.getOffset());
+    NHN->mergeTypeInfo(Ty, NH.getOffset());
     NH.addEdgeTo(getValueDest(C));
     return;
   }
@@ -1242,7 +1241,6 @@
                     << (*SI)->getNameStr() << "\n");
             GlobalsGraph->getNodeForValue(*SI).mergeWith(DHV);
           }
-          //DHV.getNode()->dump();
         }
       }
       msf >> count;





More information about the llvm-commits mailing list