[PATCH] D123819: [InstCombine] Fold strlen and strnlen recursively.
Martin Sebor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 12:19:48 PDT 2022
msebor added a comment.
> ...cases that the `strlen` folding cannot handle (arrays with embedded nuls where the bound is less than the length of any of the substrings).
Whoops, that was a thinko. Those are cases that `strnlen` //cannot// safely handle. Those it can handle that `strlen` can't are unterminated arrays with variable offsets.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123819/new/
https://reviews.llvm.org/D123819
More information about the llvm-commits
mailing list