[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Apr 18 14:00:15 PDT 2006
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();
More information about the llvm-commits
mailing list