[PATCH] D133660: [Support] Add fast path for StringRef::find with needle of length 2.

Tatsuyuki Ishi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 11 01:00:28 PDT 2022


ishitatsuyuki added a comment.

(Carried over from D133658 <https://reviews.llvm.org/D133658>)

A note that the N=2 search code is mostly mirrored from glibc; I believe it's short enough to not cause copyright issues but please let me know if I should be more defensive here.

https://codebrowser.dev/glibc/glibc/string/memmem.c.html#70


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133660/new/

https://reviews.llvm.org/D133660



More information about the llvm-commits mailing list