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

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Apr 15 00:30:05 PDT 2020


sivachandra added a comment.

In D77949#1982778 <https://reviews.llvm.org/D77949#1982778>, @tschuett wrote:

> No worries. I am only afraid that a future compiler detects the UB and starts to optimize.


At least wrt `strlen`, I am not sure if compilers can detect the kind of UB we are discussing here. The `strlen` function gets a pointer. The compilers cannot assume anything about what that pointer is pointing to. Is there something else in your mind that I am missing?


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

https://reviews.llvm.org/D77949





More information about the libc-commits mailing list