[llvm] [SPIR-V] Fix sub-byte argument type mismatch in call lowering (PR #189893)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 05:46:04 PDT 2026


================
@@ -395,7 +395,6 @@ bool SPIRVCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder,
     assert(VRegs[i].size() == 1 && "Formal arg has multiple vregs");
     Register ArgReg = VRegs[i][0];
     MRI->setRegClass(ArgReg, GR->getRegClass(ArgTypeVRegs[i]));
-    MRI->setType(ArgReg, GR->getRegType(ArgTypeVRegs[i]));
----------------
aobolensk wrote:

> 567

Removing this setType does not impact anything (all tests pass). Do you think we should remove it here as well?

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


More information about the llvm-commits mailing list