[all-commits] [llvm/llvm-project] c24016: [Analysis] improve function matching for strlen li...
RotateRight via All-commits
all-commits at lists.llvm.org
Wed Sep 22 10:50:25 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c240169ff2e416f2652a5d3a80a83ef68ab7fa23
https://github.com/llvm/llvm-project/commit/c240169ff2e416f2652a5d3a80a83ef68ab7fa23
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2021-09-22 (Wed, 22 Sep 2021)
Changed paths:
M llvm/lib/Analysis/TargetLibraryInfo.cpp
M llvm/test/Transforms/InstCombine/call-callconv.ll
M llvm/test/Transforms/InstCombine/simplify-libcalls.ll
Log Message:
-----------
[Analysis] improve function matching for strlen libcall
The return type of strlen is size_t, not just any integer.
This is a partial fix for an example based on:
https://llvm.org/PR50836
There's another bug here because we can still crash
processing a real strlen or something that looks like it.
More information about the All-commits
mailing list