Skip to content

Commit b5441a4

Browse files
committed
[NFC] Remove unnecessary switch case for OpSelect
With SPIRVSelect inheriting from SPIRVInstTemplateBase, this can now be handled through the switch default.
1 parent fb5ef41 commit b5441a4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,10 +3866,6 @@ LLVMToSPIRVBase::transBuiltinToInstWithoutDecoration(Op OC, CallInst *CI,
38663866
return BM->addAsyncGroupCopy(BArgs[0], BArgs[1], BArgs[2], BArgs[3],
38673867
BArgs[4], BArgs[5], BB);
38683868
} break;
3869-
case OpSelect: {
3870-
auto BArgs = transValue(getArguments(CI), BB);
3871-
return BM->addSelectInst(BArgs[0], BArgs[1], BArgs[2], BB);
3872-
}
38733869
case OpSampledImage: {
38743870
// Clang can generate SPIRV-friendly call for OpSampledImage instruction,
38753871
// i.e. __spirv_SampledImage... But it can't generate correct return type

0 commit comments

Comments
 (0)