This change implements folding of memrchr calls with a constant array and character, analogous to memchr.
Depends on D123628.
Paths
| Differential D123629
[InstCombine] Fold memrchr calls with a constant character. ClosedPublic Authored by msebor on Apr 12 2022, 1:36 PM.
Details
Diff Detail
Event Timelinemsebor added a parent revision: D123628: [InstCombine] Bail on memrchr calls with an excessive size..Apr 12 2022, 1:37 PM msebor added a child revision: D123631: [InstCombine] Fold memrchr calls with sequences of identical bytes..Apr 12 2022, 1:41 PM nikic added inline comments.
This revision now requires changes to proceed.Apr 13 2022, 3:47 AM
This revision is now accepted and ready to land.Apr 14 2022, 5:46 AM This revision was landed with ongoing or failed builds.Apr 26 2022, 1:03 PM Closed by commit rGce8f42d4af2c: [InstCombine] Fold memrchr calls with a constant character. (authored by msebor). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 425292 llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/memrchr-2.ll
llvm/test/Transforms/InstCombine/memrchr-3.ll
|
Use NullPtr?