diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2020-02-04 22:10:39 -0800 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2020-02-08 11:51:00 -0800 |
commit | f8c9ceb1ce9c71574d413a6391812d46d9f9edb3 (patch) | |
tree | 5a9b5b8e61707ee1c6014620196f46016547d0b0 /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | a148b9e9909db6a592609eb35b4de38c9e67cb8b (diff) | |
download | llvm-f8c9ceb1ce9c71574d413a6391812d46d9f9edb3.zip llvm-f8c9ceb1ce9c71574d413a6391812d46d9f9edb3.tar.gz llvm-f8c9ceb1ce9c71574d413a6391812d46d9f9edb3.tar.bz2 |
[SimplifyLibCalls] Add __strlen_chk.
Bionic has had `__strlen_chk` for a while. Optimizing that into a
constant is quite profitable, when possible.
Differential Revision: https://reviews.llvm.org/D74079
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index 00b1e94..965983f 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -474,6 +474,7 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare i32 @__sprintf_chk(i8*, i32, i64, i8*, ...)\n" "declare i8* @__strcat_chk(i8*, i8*, i64)\n" "declare i64 @__strlcat_chk(i8*, i8*, i64, i64)\n" + "declare i64 @__strlen_chk(i8*, i64)\n" "declare i8* @__strncat_chk(i8*, i8*, i64, i64)\n" "declare i64 @__strlcpy_chk(i8*, i8*, i64, i64)\n" "declare i32 @__vsnprintf_chk(i8*, i64, i32, i64, i8*, %struct*)\n" |