diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-03 07:43:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-03 07:43:46 +0000 |
commit | 89742c2c3fe8121a3795c8ead9dc6f5809eddbaa (patch) | |
tree | 8ad052c825b01c177a9846505a4a64c251ec6d5e /lib/Target/README.txt | |
parent | 053321731c501539ba48e158708568c3f8e17e46 (diff) | |
download | llvm-89742c2c3fe8121a3795c8ead9dc6f5809eddbaa.tar.gz llvm-89742c2c3fe8121a3795c8ead9dc6f5809eddbaa.tar.bz2 llvm-89742c2c3fe8121a3795c8ead9dc6f5809eddbaa.tar.xz |
expand note.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r-- | lib/Target/README.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 2d513c8cc3..c788360df6 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -1734,5 +1734,20 @@ if.end: 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; +} + //===---------------------------------------------------------------------===// |