Files
metal2vulkan/crates
Anees Iqbal 95199bb968 Translator test: a type only dead values had leaves with its capability (red)
After fd8b132834 made a slot's direct base and address in the entry block,
dead removal leaves the ones no access reads, but not their types: an
unused OpTypeInt 64 and a { uint, uint } struct stay declared, and with
the 64-bit type the module's OpCapability Int64 (3 of 8 sampled modules in
the byte-identity probe). Dead removal drops only vector and function
types.

The test builds that shape: a kernel that widens a loaded word to a 64-bit
integer and pairs the word with itself in a { uint, uint } struct, and
reads neither. After dead removal both types must leave, and the module
must no longer require Int64 or shaderInt64. Red here: no type leaves, so
the report counts 0 types and Int64 stays.
2026-12-02 14:24:14 -08:00
..