diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2025-09-25 19:48:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-25 19:48:14 +0200 |
commit | 96a7c9b9858ac4eb366e443b00784488c190688c (patch) | |
tree | 35d3bded80ff694f1c650a8d3641ba489f35d563 /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 30402c7dea57d35ead80387c061cda6977ba98ef (diff) | |
download | llvm-96a7c9b9858ac4eb366e443b00784488c190688c.zip llvm-96a7c9b9858ac4eb366e443b00784488c190688c.tar.gz llvm-96a7c9b9858ac4eb366e443b00784488c190688c.tar.bz2 |
[libc++] Simplify vector<bool> fill constructors (#160521)
#119632 introduced a code size and performance regression. This was
verified by running the included benchmark against trunk and trunk with
#119632 reverted. Instead of actually reverting that patch, we can
inline `__construct_at_end` into the few places it's used instead,
simplifying the implementation further (by not handling special cases we
never actually encounter).
```
Benchmark Baseline Candidate Difference % Difference
------------------------ ---------- ----------- ------------ --------------
BM_vector_bool_size_ctor 29.91 8.56 -21.35 -71.37
```
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions