Files
VIctory/crates
T
Flare ff8cf1b0fb Shaders: lane conditions along live phi edges are values, and each set is met once (#2062)
`Lower::live_edges` walks every phi a lane reads back through its
incoming edges, carrying the last few branch conditions known along the
path. Each step allocated a `Vec` for those conditions (cloned for every
edge and for the seen list) and asked the lane-condition diagram whether
some lane meets them, though paths into one join ask again for the same
sets: on a synthetic program of 256 blocks, 4,915 work items asked 3,047
times for 883 distinct sets.

The conditions (at most four) are now a small `Copy` value, and whether a
set is met is kept per set for the walk. The walk and its answers are
unchanged.

Measured with synthetic wave32 compute programs (divergent ifs, uniform
loops, gathers) through range::build, resource::track, io::raise and
emit_with, release build, two rounds each:
- emit_with: 4.67-4.74 ms -> 4.15-4.27 ms (256 blocks), 1.28-1.31 ->
  1.19-1.21 ms (64 blocks), 3.50-3.52 -> 3.26-3.30 ms (512 small
  blocks); allocations in emit_with down about 40%.
- The DXIL is byte-identical for every program (FNV hash of the output).
ff8cf1b0fb · 2026-11-25 22:54:14 +01:00
History
..