This change implements folding of memrchr calls with sequences of identical characters.
Depends on D123629.
Differential D123631
[InstCombine] Fold memrchr calls with sequences of identical bytes. msebor on Apr 12 2022, 1:41 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions Just wondering if there's any specific motivation for this pattern, as it seems oddly specific. Is this something that GCC implements?
Comment Actions There is a build error with the patch that I don't understand:
There is no memrchr-2.ll in this patch. Not sure what to make of it.
Comment Actions Yes, that's likely. Pre-merge checks apply dependencies of the patch first, though I'm not sure how exactly that works if some of them are closed. In either case, you can abandon the patch as it is no longer relevant.
|
Use the helper function that avoids the 32-bit truncation issue?