diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2024-06-11 16:55:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 16:55:56 -0400 |
commit | 6faae130e4ea34f8b092fdfcd866fbb5861bfc49 (patch) | |
tree | 9c1c08e36412afce2834398aec96b4adc286ee96 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | f638f7b6a7c22bc802bb9620acfa10a00d4217cf (diff) | |
download | llvm-6faae130e4ea34f8b092fdfcd866fbb5861bfc49.zip llvm-6faae130e4ea34f8b092fdfcd866fbb5861bfc49.tar.gz llvm-6faae130e4ea34f8b092fdfcd866fbb5861bfc49.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions