zdxc/src
peterino2 72f1760844 Unroll small loops only, and SCCP in reverse postorder
The Unreal work unrolled far more than dxc does: the IR unrolled any
small constant-count loop, and the DXIL unroller any loop of up to 256
trips. On Glide's GlimmerProbeTrace and GlimmerSHUpdate compiles took
10-17x longer and DXIL grew to 470 KB (dxc: 155 KB), so Glide's
replayed compiles took 2.7x as long as with main.

- the IR's automatic unrolling is gone again (it did little for Unreal)
- DXIL unrolls a loop only when unrolled it stays within 300
  instructions, as dxc unrolls only small loops without [unroll]
- SCCP visits blocks in reverse postorder, so it settles in a few passes

Glide, against main (bb942b0): 24 threads 1.36 s vs 1.25 s, serial sum
13.2 s vs 11.8 s, DXIL 58.1 MB vs 61.4 MB. Unreal's corpus still
compiles, validates, and reflects no UAV dxc leaves out.
2026-11-03 00:12:50 -08:00
..
dxil Unroll small loops only, and SCCP in reverse postorder 2026-11-03 00:12:50 -08:00
front Compile Unreal Engine 5.8's shaders as a DXC drop-in 2026-11-02 23:34:14 -08:00
ir Unroll small loops only, and SCCP in reverse postorder 2026-11-03 00:12:50 -08:00
sema Compile Unreal Engine 5.8's shaders as a DXC drop-in 2026-11-02 23:34:14 -08:00
spirv SPIR-V: selection controls from [branch] and [flatten] 2026-11-02 08:00:54 +00:00
capi.zig zdxc: C API and static libzdxc 2026-11-01 17:15:16 -08:00
compile.zig Unroll small loops only, and SCCP in reverse postorder 2026-11-03 00:12:50 -08:00
diag.zig Templates: S<T>::member, partial specialization, member templates, SFINAE, out-of-line members, ADL 2026-10-31 18:58:46 -07:00
dxcapi.zig DXIL reflection for the DXC drop-in 2026-11-02 13:14:37 -08:00
job.zig --job: keep file I/O off the compile threads 2026-11-02 07:28:12 -08:00
main.zig --job: keep file I/O off the compile threads 2026-11-02 07:28:12 -08:00
options.zig SPIR-V: inline calls in the IR 2026-11-02 07:10:23 +00:00
root.zig DXIL reflection for the DXC drop-in 2026-11-02 13:14:37 -08:00