← all workloads

inlining

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

Phase composition vs N (stacked sub-counters)

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.

inlining — phase composition vs N (v2026.5, median ms) inlining 4.5× over N 100→800 0.0 107 213 100 200 400 800 N inlining — parseTranslationUnit inlining — SemanticChecking inlining — generateIR inlining — frontEndExecute (self) inlining — specializeModule inlining — simplifyIR inlining — linkIR inlining — unrollLoopsInModule inlining — legalizeResourceTypes inlining — legalizeExistentialTypeLayout inlining — performMandatoryEarlyInlining inlining — performForceInlining inlining — linkAndOptimizeIR (self) inlining — generateOutput (self) inlining — compileInner (self) phase buckets parseTranslationUnit SemanticChecking generateIR frontEndExecute (self) specializeModule simplifyIR linkIR unrollLoopsInModule legalizeResourceTypes legalizeExistentialTypeLayout performMandatoryEarlyInlining performForceInlining linkAndOptimizeIR (self) emitEntryPointsSourceFromIR generateOutput (self) compileInner (self)

Scaling analysis

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 rangefloor (ms)k (work)fit R²t(Nmin)t(Nmax)top-2×
100–80090.820.992431971.86×

Growth attribution (N=100 → N=800)

compileInner grows by 154 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.

buckett@N=100t@N=800Δ msshare× lin∝Nk
SemanticChecking2692+6643%0.69×0.69
simplifyIR330+2718%1.38×1.17
generateIR419+159%0.74×0.75
linkAndOptimizeIR (self)216+139%1.03×1.02
specializeModule214+138%1.00×0.99

Also growing (below top-5): legalizeExistentialTypeLayout (+4 ms, 3%), legalizeResourceTypes (+4 ms, 3%), performForceInlining (+4 ms, 3%).

Near-constant (≤2% of growth each): linkIR (1→4 ms), generateOutput (self) (3→3 ms), parseTranslationUnit (1→3 ms), performMandatoryEarlyInlining (0→2 ms), frontEndExecute (self) (1→0 ms), unrollLoopsInModule (0→0 ms), compileInner (self) (0→0 ms).

Sweep numbers (median ms)

NcompileInnersimplifyIRlinkAndOptimizeIR
10043310
20063518
4001061236
8001973079