This patch in the strnlen series adds folding of calls used in equality expressions with zero.
Depends on D123817.
Paths
| Differential D123818
[InstCombine] Fold strnlen calls in equality to zero. ClosedPublic Authored by msebor on Apr 14 2022, 1:23 PM.
Details Summary This patch in the strnlen series adds folding of calls used in equality expressions with zero. Depends on D123817.
Diff Detail
Event Timelinemsebor added a parent revision: D123817: [InstCombine] Fold strnlen of constant strings..Apr 14 2022, 1:23 PM msebor added a child revision: D123819: [InstCombine] Fold strlen and strnlen recursively..Apr 14 2022, 1:29 PM
Comment Actions LG -- the current baseline checks are outdated and a bit confusing for that reason, but otherwise this looks right.
This revision is now accepted and ready to land.Apr 27 2022, 7:15 AM This revision was landed with ongoing or failed builds.Apr 27 2022, 11:06 AM Closed by commit rGefa0f12c0beb: [InstCombine] Fold strnlen calls in equality to zero. (authored by msebor). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 425574 llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/strnlen-5.ll
|
maybe you can drop “strlenfirst” here..