This patch in the strnlen series enables the handling of calls with constant arrays and variable offsets and variable bounds.
Depends on D123819.
| Paths 
 |  Differential  D123820  
[InstCombine] Fold strnlen of strings at offsets and unknown bounds. AbandonedPublic Authored by msebor on Apr 14 2022, 1:31 PM. 
Details 
Diff Detail 
 Event Timelinemsebor added a parent revision: D123819: [InstCombine] Fold strlen and strnlen recursively..Apr 14 2022, 1:32 PM 
Revision Contents 
Diff 422951 llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
 llvm/test/Transforms/InstCombine/strnlen-3.ll
 llvm/test/Transforms/InstCombine/strnlen-4.ll
 llvm/test/Transforms/InstCombine/strnlen-5.ll
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||