Skip to content

Commit 2b0f717

Browse files
svenvhPavel V Chupin
authored andcommitted
Avoid excess runs of OCLTypeToSPIRV
OCLTypeToSPIRV is an analysis required by other passes, so we don't need to run it explicitly. Original commit: KhronosGroup/SPIRV-LLVM-Translator@3cbf128
1 parent 38e846c commit 2b0f717

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5039,7 +5039,6 @@ void addPassesForSPIRV(legacy::PassManager &PassMgr,
50395039
if (Opts.isSPIRVMemToRegEnabled())
50405040
PassMgr.add(createPromoteMemoryToRegisterPass());
50415041
PassMgr.add(createPreprocessMetadataLegacy());
5042-
PassMgr.add(createOCLTypeToSPIRVLegacy());
50435042
PassMgr.add(createSPIRVLowerOCLBlocksLegacy());
50445043
PassMgr.add(createOCLToSPIRVLegacy());
50455044
PassMgr.add(createSPIRVRegularizeLLVMLegacy());

0 commit comments

Comments
 (0)