[PATCH] D74079: [SimplifyLibCalls] Simplify __strlen_chk
George Burgess IV via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 11:12:51 PST 2020
george.burgess.iv created this revision.
george.burgess.iv added reviewers: jdoerfert, erik.pilkington.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya.
Herald added a project: LLVM.
Bionic has had `__strlen_chk` for quite a while; its goal is to catch overflows of unterminated strings.
This CL allows LLVM to optimize that to `strlen` where appropriate.
https://reviews.llvm.org/D74079
Files:
llvm/include/llvm/Analysis/TargetLibraryInfo.def
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strlen_chk.ll
llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74079.242702.patch
Type: text/x-patch
Size: 6187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200205/9eba28ac/attachment.bin>
More information about the llvm-commits
mailing list