This patch in the strnlen series implements folding of calls with a bound of either zero or one.
Depends on D123815.
Paths
| Differential D123816
[InstCombine] Fold strnlen with a bound of zero and one. ClosedPublic Authored by msebor on Apr 14 2022, 1:18 PM.
Details Summary This patch in the strnlen series implements folding of calls with a bound of either zero or one. Depends on D123815.
Diff Detail Event Timelinemsebor added a parent revision: D123815: [InstCombine] Add a strnlen handler stub..Apr 14 2022, 1:18 PM msebor added a child revision: D123817: [InstCombine] Fold strnlen of constant strings..Apr 14 2022, 1:21 PM nikic added inline comments.
This revision now requires changes to proceed.Apr 14 2022, 1:46 PM
This revision is now accepted and ready to land.Apr 26 2022, 12:38 AM Closed by commit rG25febbd155a5: [InstCombine] Fold strnlen with a bound of zero and one. (authored by msebor). · Explain WhyApr 26 2022, 1:03 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 425004 llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strnlen-1.ll
llvm/test/Transforms/InstCombine/strnlen-2.ll
llvm/test/Transforms/InstCombine/strnlen-3.ll
llvm/test/Transforms/InstCombine/strnlen-5.ll
|
nit: Indent not aligned.