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 | 14 | 1.84 | 0.991 | 60 | 2153 | 4.63× |
compileInner grows by 2093 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 |
|---|---|---|---|---|---|---|
| simplifyIR | 24 | 1944 | +1919 | 92% | 6.12× | 2.11 |
| SemanticChecking | 15 | 68 | +53 | 3% | 0.94× | 0.94 |
| specializeModule | 5 | 51 | +46 | 2% | 1.57× | 1.24 |
Near-constant (≤2% of growth each): generateIR (6→32 ms), linkAndOptimizeIR (self) (3→29 ms), performForceInlining (1→5 ms), legalizeResourceTypes (0→4 ms), legalizeExistentialTypeLayout (0→4 ms), linkIR (1→4 ms), parseTranslationUnit (1→4 ms), generateOutput (self) (3→4 ms), compileInner (self) (1→2 ms), performMandatoryEarlyInlining (0→1 ms), frontEndExecute (self) (0→1 ms), unrollLoopsInModule (0→0 ms).
| N | compileInner | simplifyIR | linkAndOptimizeIR |
|---|---|---|---|
| 100 | 60 | 24 | 35 |
| 200 | 142 | 88 | 106 |
| 400 | 465 | 369 | 408 |
| 800 | 2153 | 1944 | 2043 |