Skip to content
Commit 8465ea44 authored by Eric Fiselier's avatar Eric Fiselier
Browse files

[libcxx] Optimize away unneeded length calculation in basic_string::compare(const char*)

Summary:
This patch optimizes basic_string::compare to use strcmp when the default char_traits has been given.
See PR19900 for more information. https://llvm.org/bugs/show_bug.cgi?id=19900

Reviewers: mclow.lists

Subscribers: bkramer, cfe-commits

Differential Revision: http://reviews.llvm.org/D12355

llvm-svn: 246266
parent ad5ca224
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment