[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Apr 19 08:34:14 PDT 2006
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.149 -> 1.150
---
Log message:
deal with memchr
---
Diffs of the changes: (+7 -0)
Local.cpp | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.149 llvm/lib/Analysis/DataStructure/Local.cpp:1.150
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.149 Tue Apr 18 22:45:25 2006
+++ llvm/lib/Analysis/DataStructure/Local.cpp Wed Apr 19 10:34:02 2006
@@ -636,6 +636,13 @@
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.
More information about the llvm-commits
mailing list