diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-18 20:59:52 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-18 20:59:52 +0000 |
commit | f70cb8408313b4c0e60a65b4b24e691a5943abef (patch) | |
tree | 6783d66099635fee27bb1a95b52998a2673f6836 /llvm/lib/Analysis/DataStructure/Local.cpp | |
parent | 49e188d7f791f5dd4efe027dfe813e117a4c3c20 (diff) | |
download | bcm5719-llvm-f70cb8408313b4c0e60a65b4b24e691a5943abef.tar.gz bcm5719-llvm-f70cb8408313b4c0e60a65b4b24e691a5943abef.zip |
llvm.memc* improvements. helps PA a lot in some specmarks
llvm-svn: 27812
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/Local.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index 9afc9661a63..a63edaa7775 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/lib/Analysis/DataStructure/Local.cpp @@ -561,8 +561,13 @@ void GraphBuilder::visitCallSite(CallSite CS) { // 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(); |