Add more benchmarks for literal strings.
authorSamuel Benzaquen <sbenza@google.com>
Wed, 3 Apr 2019 17:40:51 +0000 (17:40 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Wed, 3 Apr 2019 17:40:51 +0000 (17:40 +0000)
commit27a83e99f4866471dabeeb1c116df91b587d5362
tree3bc42b21dded6fc5d77760a2edd19e52eaca9929
parent8a497a958be1f4656eff9664e1be29491f3795d2
Add more benchmarks for literal strings.

Summary:
Comparing against the empty string should generate much better code that
what it does today.
We can also generate better code when comparing against literals that
are larger than the SSO space.

Reviewers: EricWF

Subscribers: christof, jdoerfert, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D59781

llvm-svn: 357614
libcxx/benchmarks/string.bench.cpp