Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.146 -> 1.147
---
Log message:

llvm.memc* improvements.  helps PA a lot in some specmarks

---
Diffs of the changes:  (+7 -2)

 Local.cpp |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)


Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.146 
llvm/lib/Analysis/DataStructure/Local.cpp:1.147
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.146     Tue Apr 18 14:54:11 2006
+++ llvm/lib/Analysis/DataStructure/Local.cpp   Tue Apr 18 15:59:52 2006
@@ -561,8 +561,13 @@
         // modified.  Preserve second graph
        DSNodeHandle RetNH = getValueDest(**CS.arg_begin());
        DSNodeHandle SrcNH = getValueDest(**(CS.arg_begin()+1));
-       DSNodeHandle Copy( new DSNode(*SrcNH.getNode(), 
SrcNH.getNode()->getParentGraph()),
-                          SrcNH.getOffset());
+       //copy dsnode
+       DSNode* copy = new DSNode(*SrcNH.getNode(), 
SrcNH.getNode()->getParentGraph());
+       //since this is the target memory, we only are interested in the links.
+       //the target will not wind up with a global memory object , unless it 
+       //was already there (only pointers to global memory objects)
+       copy->clearGlobals();
+       DSNodeHandle Copy( copy, SrcNH.getOffset());
        RetNH.mergeWith(Copy);
         if (DSNode *N = RetNH.getNode())
           N->setModifiedMarker();



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to