diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/lib/Target/README.txt | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/lib/Target/README.txt')
-rw-r--r-- | contrib/libs/llvm12/lib/Target/README.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/llvm12/lib/Target/README.txt b/contrib/libs/llvm12/lib/Target/README.txt index 1528417696..e172abbbd8 100644 --- a/contrib/libs/llvm12/lib/Target/README.txt +++ b/contrib/libs/llvm12/lib/Target/README.txt @@ -1541,9 +1541,9 @@ int bar() { return foo("abcd"); } //===---------------------------------------------------------------------===// -function-attrs doesn't know much about memcpy/memset. This function should be +function-attrs doesn't know much about memcpy/memset. This function should be marked readnone rather than readonly, since it only twiddles local memory, but -function-attrs doesn't handle memset/memcpy/memmove aggressively: +function-attrs doesn't handle memset/memcpy/memmove aggressively: struct X { int *p; int *q; }; int foo() { @@ -1557,7 +1557,7 @@ int foo() { } This can be seen at: -$ clang t.c -S -o - -mkernel -O0 -emit-llvm | opt -function-attrs -S +$ clang t.c -S -o - -mkernel -O0 -emit-llvm | opt -function-attrs -S //===---------------------------------------------------------------------===// @@ -1840,7 +1840,7 @@ current definition always folds to a constant. We also should make sure that we remove checking in code like char *p = malloc(strlen(s)+1); - __strcpy_chk(p, s, __builtin_object_size(p, 0)); + __strcpy_chk(p, s, __builtin_object_size(p, 0)); //===---------------------------------------------------------------------===// |