[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp

Vikram Adve vadve at cs.uiuc.edu
Tue May 25 03:35:11 PDT 2004


Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.103 -> 1.104

---
Log message:

Recognize memalign and friends, and handle them specially.


---
Diffs of the changes:  (+2 -1)

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.103 llvm/lib/Analysis/DataStructure/Local.cpp:1.104
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.103	Sun May 23 16:14:09 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Tue May 25 03:14:52 2004
@@ -523,7 +523,8 @@
           N->setModifiedMarker();
         return;
       default:
-        if (F->getName() == "calloc") {
+        if (F->getName() == "calloc" || F->getName() == "posix_memalign" ||
+            F->getName() == "memalign" || F->getName() == "valloc") {
           setDestTo(*CS.getInstruction(),
                     createNode()->setHeapNodeMarker()->setModifiedMarker());
           return;





More information about the llvm-commits mailing list