Skip to content

Commit 901fe87

Browse files
authored
[NFC][SYCL] Disable redundant DCE run (#2320)
It is not needed after enabling of standard optimizations in FE by default.
1 parent a74d898 commit 901fe87

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,10 +916,6 @@ void EmitAssemblyHelper::EmitAssembly(BackendAction Action,
916916

917917
std::unique_ptr<llvm::ToolOutputFile> ThinLinkOS, DwoOS;
918918

919-
// Clean-up SYCL device code if LLVM passes are disabled
920-
if (LangOpts.SYCLIsDevice && CodeGenOpts.DisableLLVMPasses)
921-
PerModulePasses.add(createDeadCodeEliminationPass());
922-
923919
// Eliminate dead arguments from SPIR kernels in SYCL environment.
924920
// 1. Run DAE when LLVM optimizations are applied as well.
925921
// 2. We cannot run DAE for ESIMD since the pointers to SPIR kernel

0 commit comments

Comments
 (0)