diff options
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
| -rw-r--r-- | lib/Analysis/DataStructure/Local.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index f3406b7699..0aca21a437 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -446,6 +446,15 @@ void GraphBuilder::visitCallSite(CallSite CS) {          if (DSNode *N = RetNH.getNode())            N->setModifiedMarker();          return; +      } else if (F->getName() == "memmove") { +        // Merge the first & second arguments with the result, and mark the +        // memory read and modified. +        DSNodeHandle RetNH = getValueDest(*CS.getInstruction()); +        RetNH.mergeWith(getValueDest(**CS.arg_begin())); +        RetNH.mergeWith(getValueDest(**(CS.arg_begin()+1))); +        if (DSNode *N = RetNH.getNode()) +          N->setModifiedMarker()->setReadMarker(); +        return;        } else if (F->getName() == "bzero") {          // Mark the memory modified.          DSNodeHandle H = getValueDest(**CS.arg_begin());  | 
