[llvm] MC: Store fragment content and fixups out-of-line (PR #146307)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 00:18:32 PDT 2025


================
@@ -296,10 +301,7 @@ class LLVM_ABI MCSection {
 
 /// Interface implemented by fragments that contain encoded instructions and/or
 /// data.
-///
 class MCEncodedFragment : public MCFragment {
-  uint8_t BundlePadding = 0;
----------------
MaskRay wrote:

Thanks. Kept BundlePadding at the beginning.


<h4 style="font-family: monospace; color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">stage1-ReleaseLTO-g (link only):</h4>
Benchmark | Old | New

-- | -- | --
kimwitu++ | 234MiB | 221MiB (-5.37%)
sqlite3 | 201MiB | 182MiB (-9.12%)
consumer-typeset | 154MiB | 144MiB (-6.18%)
Bullet | 198MiB | 193MiB (-2.41%)
tramp3d-v4 | 624MiB | 592MiB (-5.13%)
mafft | 124MiB | 122MiB (-1.49%)
ClamAV | 213MiB | 196MiB (-8.39%)
lencod | 264MiB | 262MiB (-0.98%)
SPASS | 288MiB | 285MiB (-1.13%)
7zip | 432MiB | 397MiB (-8.05%)
geomean | 245MiB | 233MiB (-4.87%)




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


More information about the llvm-commits mailing list