[llvm] [SPIR-V] Fix type mismatch in scalar-to-vector promotion for mixed-type builtins (PR #190969)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 07:05:27 PDT 2026
================
@@ -1215,10 +1218,13 @@ getBuiltinCallArguments(const SPIRV::IncomingCall *Call, uint32_t BuiltinNumber,
Register VecArg = Argument;
SPIRVTypeInst ArgumentType = GR->getSPIRVTypeForVReg(Argument);
if (ArgumentType != Call->ReturnType) {
----------------
jmmartinez wrote:
Just realized:
Is it possible that the float argument is not a vector type and the integer argument is ? What happens if `ArgumentType` is already a vector type ?
https://github.com/llvm/llvm-project/pull/190969
More information about the llvm-commits
mailing list