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

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 27 22:04:01 PST 2003


Changes in directory llvm/lib/Analysis:

BasicAliasAnalysis.cpp updated: 1.24 -> 1.25

---
Log message:

Add a note


---
Diffs of the changes:  (+5 -0)

Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff -u llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.24 llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.25
--- llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.24	Thu Dec 11 17:20:16 2003
+++ llvm/lib/Analysis/BasicAliasAnalysis.cpp	Sat Dec 27 22:03:49 2003
@@ -11,6 +11,11 @@
 // that simply implements a few identities (two different globals cannot alias,
 // etc), but otherwise does no analysis.
 //
+// FIXME: This could be extended for a very simple form of mod/ref information.
+// If a pointer is locally allocated (either malloc or alloca) and never passed
+// into a call or stored to memory, then we know that calls will not mod/ref the
+// memory.  This can be important for tailcallelim.
+//
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Analysis/AliasAnalysis.h"





More information about the llvm-commits mailing list