[llvm] [SPIRV] Fix trunc nonstandard int types (PR #191393)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 02:40:43 PDT 2026


================
@@ -486,6 +501,39 @@ generateAssignInstrs(MachineFunction &MF, SPIRVGlobalRegistry *GR,
       ST->canUseExtension(SPIRV::Extension::SPV_KHR_bit_instructions) ||
       ST->canUseExtension(SPIRV::Extension::SPV_INTEL_int4);
 
+  if (!IsExtendedInts) {
----------------
idubinov wrote:

here we cannot - this check is one of the steps of the algorithm. we cannot exit here - there are steps after it

https://github.com/llvm/llvm-project/pull/191393


More information about the llvm-commits mailing list