n [ForceInline] functions in bounded-depth groups. The inliner collapses each group into its group-top; the entry sums all group-tops, giving the SSA simplifier large bodies to chew on. Scales by breadth (bounded nesting). Scaling null: n scales call sites with bounded inlining depth; ideal cost is O(n).
bucket: inlining · mode: target · flags: -target spirv -emit-spirv-directly
compileInner split into phase buckets (named leaves + (self) residuals) stacked across the sweep sizes — the top edge is compileInner, so you can see which phase drives the scaling.
floor-subtracted power-law fit (t − floor) = a·Nk; floor = the minimal workload (fixed per-compile cost), k the global exponent, top-2× the local high-end doubling ratio.
| N range | floor (ms) | k (work) | fit R² | t(Nmin) | t(Nmax) | top-2× |
|---|---|---|---|---|---|---|
| 100–800 | 11 | 0.95 | 0.997 | 39 | 213 | 1.98× |
compileInner grows by 174 ms across the sweep; the mutually-exclusive phase buckets below partition that growth exactly (no nested-timer double counting). × lin is the same metric as the top-level panels, per bucket: the end point vs a linear expectation anchored to the bucket's share of the minimal floor and fitted on the low-N half — 1.0 = grew exactly linearly, >1 bends up. The super-linearity lives where × lin (and k) are red.
| bucket | t@N=100 | t@N=800 | Δ ms | share | × lin | ∝Nk |
|---|---|---|---|---|---|---|
| SemanticChecking | 16 | 71 | +55 | 31% | 0.90× | 0.89 |
| specializeModule | 4 | 48 | +44 | 25% | 1.45× | 1.17 |
| simplifyIR | 5 | 36 | +31 | 18% | 1.02× | 1.00 |
| generateIR | 6 | 27 | +21 | 12% | 0.86× | 0.83 |
| linkAndOptimizeIR (self) | 2 | 12 | +10 | 6% | 1.03× | 0.99 |
Also growing (below top-5): performForceInlining (+4 ms, 3%).
Near-constant (≤2% of growth each): parseTranslationUnit (1→4 ms), linkIR (1→3 ms), generateOutput (self) (2→3 ms), performMandatoryEarlyInlining (0→2 ms), legalizeExistentialTypeLayout (0→1 ms), legalizeResourceTypes (0→1 ms), unrollLoopsInModule (0→0 ms), frontEndExecute (self) (0→0 ms), compileInner (self) (0→0 ms).
| N | compileInner | simplifyIR | linkAndOptimizeIR |
|---|---|---|---|
| 100 | 39 | 5 | 13 |
| 200 | 60 | 9 | 24 |
| 400 | 108 | 17 | 49 |
| 800 | 213 | 36 | 108 |