Skip to content

Commit 47176f2

Browse files
author
Anton Sidorenko
committed
[SYCL][ESIMD] Enable type rewriting in spirv writer adaptor
1 parent ce3ac09 commit 47176f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,8 @@ void EmitAssemblyHelper::EmitAssembly(BackendAction Action,
942942
PerModulePasses.add(createDeadArgEliminationSYCLPass());
943943

944944
if (LangOpts.SYCLIsDevice && LangOpts.SYCLExplicitSIMD)
945-
PerModulePasses.add(createGenXSPIRVWriterAdaptorPass());
945+
PerModulePasses.add(
946+
createGenXSPIRVWriterAdaptorPass(/*RewriteTypes=*/true));
946947

947948
switch (Action) {
948949
case Backend_EmitNothing:

0 commit comments

Comments
 (0)