commit | 78376ad7e15740eab9bed7efefca354c05d3d2e2 | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Wed Jan 06 08:45:52 2010 +0000 |
committer | Duncan Sands <baldrick@free.fr> | Wed Jan 06 08:45:52 2010 +0000 |
tree | 882bcbdbddcdd85694fc7ffcae1010d4f1195068 | |
parent | a671c2a9fe496d8694ad7f6daa84f5b5d7f193a4 [diff] |
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. llvm-svn: 92829