diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-01-01 22:57:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-01-01 22:57:31 +0000 |
| commit | 6c3fc0a52d75b9792c85ba88c4d6d30d568455db (patch) | |
| tree | 73fd3aa2884d59d65583052b4af8fb2a86a0f3b3 /llvm/lib | |
| parent | e5d5a41a58ded2348270bcf6acb1e6f1aec06abe (diff) | |
| download | bcm5719-llvm-6c3fc0a52d75b9792c85ba88c4d6d30d568455db.tar.gz bcm5719-llvm-6c3fc0a52d75b9792c85ba88c4d6d30d568455db.zip | |
a missed __builtin_object_size case.
llvm-svn: 122676
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/README.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt index be0e6bb82e4..4e374e59d6d 100644 --- a/llvm/lib/Target/README.txt +++ b/llvm/lib/Target/README.txt @@ -2074,3 +2074,20 @@ define i1 @g(i32 a) nounwind readnone { } //===---------------------------------------------------------------------===// + +This code can be seen in viterbi: + + %64 = call noalias i8* @malloc(i64 %62) nounwind +... + %67 = call i64 @llvm.objectsize.i64(i8* %64, i1 false) nounwind + %68 = call i8* @__memset_chk(i8* %64, i32 0, i64 %62, i64 %67) nounwind + +llvm.objectsize.i64 should be taught about malloc/calloc, allowing it to +fold to %62. This is a security win (overflows of malloc will get caught) +and also a performance win by exposing more memsets to the optimizer. + +This occurs several times in viterbi. + +//===---------------------------------------------------------------------===// + + |

