[libc-commits] [PATCH] D77949: [libc] Add SIMD strlen implementation .

Mitch Phillips via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Apr 14 16:52:40 PDT 2020


hctim added a comment.

In D77949#1982189 <https://reviews.llvm.org/D77949#1982189>, @abrachet wrote:

> We could also make `LLVM_USE_SANITIZER` define a macro so we know when if we are building with any sanitizers and take the slow path in that case. I think it is prohibitively complicated to try to hand write what the compiler can emit for us.


This also sounds reasonable to me. It might be worth creating a pattern of having a `_sanitizeable` variant and a "vanilla" variant, and one of the implementations is inlined at compile time. I don't imagine this is the last time this comes up.


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

https://reviews.llvm.org/D77949





More information about the libc-commits mailing list