Skip to content

Commit 0dbf7ec

Browse files
authored
[SYCL] Elide unnecessary SmallVector instance and copy (#18827)
Resolves #18504. Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
1 parent 8464bf7 commit 0dbf7ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sycl-jit/jit-compiler/lib/translation/SPIRVLLVMTranslation.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ SPIRV::TranslatorOpts &SPIRVLLVMTranslator::translatorOpts() {
8484
SPIRV::BIsRepresentation::SPIRVFriendlyIR);
8585
TransOpt.setDebugInfoEIS(
8686
SPIRV::DebugInfoEIS::NonSemantic_Shader_DebugInfo_200);
87-
const llvm::SmallVector<llvm::StringRef, 4> AllowedIntrinsics = {
88-
"llvm.genx."};
89-
TransOpt.setSPIRVAllowUnknownIntrinsics(AllowedIntrinsics);
87+
TransOpt.setSPIRVAllowUnknownIntrinsics({"llvm.genx."});
9088
return TransOpt;
9189
}();
9290
return Opts;

0 commit comments

Comments
 (0)