[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:13:36 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:
> We also have this explicit setType on line 567, could it sparkle a similar issue?
I also noticed that setType when investigating the issue, but I'm not sure about that, to be honest, I didn't test
https://github.com/llvm/llvm-project/pull/189893
More information about the llvm-commits
mailing list