Files
AnyPS5/core/shader
milescovielloandClaude Opus 5.5 41b25e4f57 perf(shader): reserve an IR value's arguments for its opcode at creation
Every IR value grew its argument vector one AddArgument at a time from
empty, so a value with three arguments allocated three times (capacity
1, 2 and then 4) and freed the first two. The constructor now reserves
IrOpcodeOperandCount(opcode) arguments, the count IrBuilder::Emit
already requires, so a value built with its opcode's arguments
allocates once. Opcodes without fixed arguments (constants, phis)
reserve nothing, as before. The IR and the SPIR-V are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-18 11:11:11 +00:00
..