projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e091f3
)
deal with memchr
author
Andrew Lenharth
<andrewl@lenharth.org>
Wed, 19 Apr 2006 15:34:02 +0000
(15:34 +0000)
committer
Andrew Lenharth
<andrewl@lenharth.org>
Wed, 19 Apr 2006 15:34:02 +0000
(15:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27830
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DataStructure/Local.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/Local.cpp
b/lib/Analysis/DataStructure/Local.cpp
index 75d1f4e0bdcaa0548bc74b5ccd04aa1c56385696..738a105e2c6bbc765dd7e4fc44f111896334c568 100644
(file)
--- a/
lib/Analysis/DataStructure/Local.cpp
+++ b/
lib/Analysis/DataStructure/Local.cpp
@@
-636,6
+636,13
@@
void GraphBuilder::visitCallSite(CallSite CS) {
N->setReadMarker();
}
return;
+ } else if (F->getName() == "memchr") {
+ DSNodeHandle RetNH = getValueDest(**CS.arg_begin());
+ DSNodeHandle Result = getValueDest(*CS.getInstruction());
+ RetNH.mergeWith(Result);
+ if (DSNode *N = RetNH.getNode())
+ N->setReadMarker();
+ return;
} else if (F->getName() == "read" || F->getName() == "pipe" ||
F->getName() == "wait" || F->getName() == "time") {
// These functions write all of their pointer operands.