[llvm] [ADT] Inline FoldingSet's equality dispatch (PR #219784)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 30 14:24:13 PDT 2026


MaskRay wrote:

Merged. Now testing my new script...

% ct_table.rb 'https://llvm-compile-time-tracker.com/compare.php?from=a6e5d88e8607e4e6ad283ea06c5c6f51110dff2c&to=5c9c1f54b7718a1d49180f4f423d365ad35ef492&stat=instructions:u'
CTMark geomean `instructions:u`: ๐ŸŸข 7 improved (best -0.41%) ยท 1 within noise.

| Config                | instructions:u |   ฯƒ | max-rss |
| :-------------------- | -------------: | --: | ------: |
| stage1-O3             |  ๐ŸŸข **-0.28%** |  27 |  -0.16% |
| stage1-ReleaseThinLTO |  ๐ŸŸข **-0.25%** |  26 |  -0.18% |
| stage1-ReleaseLTO-g   |  ๐ŸŸข **-0.23%** |  17 |  -0.01% |
| stage1-O0-g           |  ๐ŸŸข **-0.41%** |  25 |  +0.02% |
| stage1-aarch64-O3     |  ๐ŸŸข **-0.25%** |  24 |  -0.21% |
| stage1-aarch64-O0-g   |  ๐ŸŸข **-0.36%** |  18 |  -0.23% |
| stage2-O3             |         -0.03% | 1.5 |  -0.05% |
| stage2-O0-g           |  ๐ŸŸข **-0.17%** | 7.9 |  -0.00% |

Building clang itself (stage2, ThinLTO):

| Metric             |       Old |       New |             ฮ” |   ฯƒ |
| :----------------- | --------: | --------: | ------------: | --: |
| instructions:u     | 19315493M | 19209232M | ๐ŸŸข **-0.55%** |  27 |
| wall-time          |   346.11s |   343.54s |        -0.74% | 1.0 |
| size-file          | 137094KiB | 136994KiB | ๐ŸŸข **-0.07%** |   โˆž |
| size-file (stage1) | 154691KiB | 154622KiB | ๐ŸŸข **-0.04%** |  68 |

<details><summary>Per-benchmark <code>instructions:u</code> (bold = beyond noise)</summary>

| Benchmark        |      s1-O3 | s1-ThinLTO |   s1-LTO-g |    s1-O0-g |  s1-a64-O3 | s1-a64-O0-g |      s2-O3 |    s2-O0-g |
| :--------------- | ---------: | ---------: | ---------: | ---------: | ---------: | ----------: | ---------: | ---------: |
| kimwitu++        | **-0.45%** | **-0.39%** | **-0.43%** | **-0.72%** | **-0.46%** |  **-0.59%** |     -0.10% | **-0.32%** |
| sqlite3          | **-0.15%** | **-0.11%** |     -0.07% |     -0.24% | **-0.11%** |      -0.17% |     +0.08% |     -0.12% |
| consumer-typeset | **-0.16%** | **-0.14%** | **-0.12%** | **-0.18%** | **-0.12%** |  **-0.15%** | **+0.05%** | **-0.06%** |
| Bullet           | **-0.47%** | **-0.50%** | **-0.48%** | **-0.66%** | **-0.42%** |  **-0.57%** | **-0.22%** | **-0.41%** |
| tramp3d-v4       | **-0.41%** | **-0.23%** | **-0.23%** | **-1.00%** | **-0.30%** |  **-0.89%** |     -0.08% | **-0.48%** |
| mafft            | **-0.29%** | **-0.26%** | **-0.20%** | **-0.19%** | **-0.24%** |  **-0.22%** |     +0.02% | **-0.07%** |
| ClamAV           | **-0.18%** | **-0.19%** | **-0.16%** | **-0.20%** | **-0.15%** |  **-0.22%** |     +0.02% | **-0.07%** |
| lencod           | **-0.20%** | **-0.19%** | **-0.16%** | **-0.23%** | **-0.16%** |  **-0.19%** |     +0.03% | **-0.07%** |
| SPASS            | **-0.21%** | **-0.19%** | **-0.15%** | **-0.29%** | **-0.18%** |  **-0.22%** |     +0.01% |     -0.07% |
| 7zip             | **-0.33%** | **-0.29%** | **-0.29%** | **-0.41%** | **-0.32%** |  **-0.38%** |     -0.08% |     -0.08% |
| **geomean**      | **-0.28%** | **-0.25%** | **-0.23%** | **-0.41%** | **-0.25%** |  **-0.36%** |     -0.03% | **-0.17%** |

</details>

[Compile-time tracker](https://llvm-compile-time-tracker.com/compare.php?from=a6e5d88e8607e4e6ad283ea06c5c6f51110dff2c&to=5c9c1f54b7718a1d49180f4f423d365ad35ef492&stat=instructions%3Au) ยท [`a6e5d88` โ†’ `5c9c1f5`](https://github.com/llvm/llvm-project/compare/a6e5d88e8607e4e6ad283ea06c5c6f51110dff2c...5c9c1f54b7718a1d49180f4f423d365ad35ef492) ยท ๐ŸŸข/๐Ÿ”ด = |ฮ”| โ‰ฅ 3ฯƒ of the tracker's measured run-to-run noise, reported as ฯƒ for `instructions:u`.

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


More information about the llvm-commits mailing list