aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-06-11 16:55:56 -0400
committerGitHub <noreply@github.com>2024-06-11 16:55:56 -0400
commit6faae130e4ea34f8b092fdfcd866fbb5861bfc49 (patch)
tree9c1c08e36412afce2834398aec96b4adc286ee96 /llvm/unittests/Support/MathExtrasTest.cpp
parentf638f7b6a7c22bc802bb9620acfa10a00d4217cf (diff)
downloadllvm-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