[llvm] [NFC][SPIRV] Fix for selectExtInst to be able to process intrinsics (PR #110864)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 11:54:55 PDT 2024
================
@@ -802,8 +784,12 @@ bool SPIRVInstructionSelector::selectExtInst(Register ResVReg,
.addImm(static_cast<uint32_t>(Set))
.addImm(Opcode);
const unsigned NumOps = I.getNumOperands();
- for (unsigned i = 1; i < NumOps; ++i)
- MIB.add(I.getOperand(i));
+ unsigned Index = 1;
+ if (I.getOperand(Index).getType() ==
----------------
farzonl wrote:
Sorry misunderstood. I thought you wanted the assert in the if block. this makes more sense.
https://github.com/llvm/llvm-project/pull/110864
More information about the llvm-commits
mailing list