Alex Voicu e531f48fc4
[SPIRV] Deduce result type for G_SEXT and G_ZEXT (#175401)
During legalisation we can fold / combine `sext` followed by a widening
via `zext`. Unfortunately, this yields a new result register with no
SPIRV Type, which leads to incorrect behaviour during post legalisation
when we end up deducing the (narrower) type from the operand. This patch
corrects the behaviour in that it ensures that we use the (widened) type
of the result to yield the SPIRV Type for the register.
2026-01-12 18:11:14 +02:00
..