[llvm-commits] [llvm] r90429 - /llvm/trunk/lib/Target/README.txt
Chris Lattner
sabre at nondot.org
Wed Dec 2 23:43:46 PST 2009
Author: lattner
Date: Thu Dec 3 01:43:46 2009
New Revision: 90429
URL: http://llvm.org/viewvc/llvm-project?rev=90429&view=rev
Log:
expand note.
Modified:
llvm/trunk/lib/Target/README.txt
Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=90429&r1=90428&r2=90429&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Thu Dec 3 01:43:46 2009
@@ -1734,5 +1734,20 @@
And functionattrs doesn't realize that the p.0 load points to function local
memory.
+Also, functionattrs doesn't know about memcpy/memset. This function should be
+marked readnone, since it only twiddles local memory, but functionattrs doesn't
+handle memset/memcpy/memmove aggressively:
+
+struct X { int *p; int *q; };
+int foo() {
+ int i = 0, j = 1;
+ struct X x, y;
+ int **p;
+ y.p = &i;
+ x.q = &j;
+ p = __builtin_memcpy (&x, &y, sizeof (int *));
+ return **p;
+}
+
//===---------------------------------------------------------------------===//
More information about the llvm-commits
mailing list