Commit cb026c5d59
Changed files (1)
src
codegen
spirv
src/codegen/spirv/Section.zig
@@ -198,10 +198,6 @@ fn writeExtendedMask(section: *Section, comptime Operand: type, operand: Operand
}
}
- if (mask == 0) {
- return;
- }
-
section.writeWord(mask);
inline for (@typeInfo(Operand).Struct.fields) |field| {
@@ -304,9 +300,6 @@ fn extendedMaskSize(comptime Operand: type, operand: Operand) usize {
else => unreachable,
}
}
- if (!any_set) {
- return 0;
- }
return total + 1; // Add one for the mask itself.
}