Known bits cannot see a value whose few possible values share no bit: a mask m = c ? ~0 : 0, its negation, its
absolute value, a field or a product of those. The walk keeps, for a 32-bit integer or a boolean that is a function
of one such value (its leaf), the value it has for each of the leaf's (ucas's map rule):
x & 3);OpSelect, the comparisons, the logical instructions, the bitcasts, and GLSL.std.450's SAbs, the
minima, maxima and clamps;0 > -m is false, -m == 0x80000000 false, a field of -m from
bit 16 is 0); it is an operand of its type, or the leaf itself, when it gives that one's values
(0 > m ? -m : m is -m, m & (c ? 5 : 0) is c ? 5 : 0, !!c is c, ((x & 3) << 4) >> 4 is x & 3); and
the bits all its values share are known bits for what follows;On the Maxwell translator's modules: the masks of predicates (c ? ~0 : 0), their negations and absolute values, and
what vertex programs compute of them.
Made from docs/layers/gpu/spirv-opt.md at 69237645142c. GPL-3.0-or-later.