Partially address a README by having functionattrs consider calls to
authorDuncan Sands <baldrick@free.fr>
Wed, 6 Jan 2010 08:45:52 +0000 (08:45 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 6 Jan 2010 08:45:52 +0000 (08:45 +0000)
commit7c422ac216fe39fc9c402a704cf296cca9dc5b22
treede0f0e167e65367280cc1d2239699ff52840d87f
parenteaba5102e4f581b2d99794bffcbf2f6d7c3c7dc2
Partially address a README by having functionattrs consider calls to
memcpy, memset and other intrinsics that only access their arguments
to be readnone if the intrinsic's arguments all point to local memory.
This improves the testcase in the README to readonly, but it could in
theory be made readnone, however this would involve more sophisticated
analysis that looks through the memcpy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92829 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/AliasAnalysis.h
lib/Analysis/AliasAnalysis.cpp
lib/Target/README.txt
lib/Transforms/IPO/FunctionAttrs.cpp
test/Transforms/FunctionAttrs/2008-10-04-LocalMemory.ll
utils/TableGen/IntrinsicEmitter.cpp