[llvm] [ADT] Out-of-line the trivially-copyable SmallVector::push_back grow path (PR #206213)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 19:27:24 PDT 2026


MaskRay wrote:


Significant (โ‰ฅ3ฯƒ vs. measured noise): ๐ŸŸข improvement ยท ๐Ÿ”ด regression. Unmarked = within noise.

| Configuration | instructions:u | max-rss |
|---|---:|---:|
| stage1-O3 | ๐ŸŸข **-0.45%** | +0.16% |
| stage1-ReleaseThinLTO | ๐ŸŸข **-0.43%** | +0.06% |
| stage1-ReleaseLTO-g | ๐ŸŸข **-0.47%** | ๐Ÿ”ด **+0.21%** |
| stage1-O0-g | ๐ŸŸข **-0.45%** | -0.10% |
| stage1-aarch64-O3 | ๐ŸŸข **-0.41%** | +0.01% |
| stage1-aarch64-O0-g | ๐ŸŸข **-0.47%** | ๐ŸŸข **-0.46%** |
| stage2-O3 | ๐ŸŸข **-0.49%** | ๐Ÿ”ด **+0.44%** |
| stage2-O0-g | ๐ŸŸข **-0.51%** | ๐Ÿ”ด **+0.42%** |

Clang build:

| Metric | Old | New | ฮ” |
|---|---:|---:|---:|
| instructions:u | 20047256M | 19939658M | ๐ŸŸข **-0.54%** |
| wall-time | 336.54s | 335.76s | -0.23% |
| size-file | 137770KiB | 137950KiB | ๐Ÿ”ด **+0.13%** |
| size-file (stage1) | 154311KiB | 154327KiB | ๐Ÿ”ด **+0.01%** |

https://github.com/llvm/llvm-project/pull/206213


More information about the llvm-commits mailing list