[all-commits] [llvm/llvm-project] 6faae1: [libc++] Simplify the definition of string::operat...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Tue Jun 11 13:56:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6faae130e4ea34f8b092fdfcd866fbb5861bfc49
https://github.com/llvm/llvm-project/commit/6faae130e4ea34f8b092fdfcd866fbb5861bfc49
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2024-06-11 (Tue, 11 Jun 2024)
Changed paths:
M libcxx/include/string
Log Message:
-----------
[libc++] Simplify the definition of string::operator== (#95000)
Instead of hardcoding a loop for small strings, always call
char_traits::compare which ends up desugaring to __builtin_memcmp.
Note that the original code dates back 11 years, when we didn't lower to
intrinsics in `char_traits::compare`.
Fixes #94222
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list