Skip to content

Commit

Permalink
[SYCL] Run DCE + GDCE instead of DSE.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
  • Loading branch information
vladimirlaz committed Jan 22, 2019
1 parent 0a83bce commit e2b3b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/BackendUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ void EmitAssemblyHelper::EmitAssembly(BackendAction Action,
PerModulePasses.add(
createAlwaysInlinerLegacyPass(true /*InsertLifetimeIntrinsics*/));
PerModulePasses.add(createASFixerPass());
PerModulePasses.add(createDeadStoreEliminationPass());
PerModulePasses.add(createDeadCodeEliminationPass());
}
PerModulePasses.add(createSPIRVWriterPass(*OS));

Expand Down Expand Up @@ -1094,7 +1094,7 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager(
CodeGenPasses.add(
createAlwaysInlinerLegacyPass(true /*InsertLifetimeIntrinsics*/));
CodeGenPasses.add(createASFixerPass());
CodeGenPasses.add(createDeadStoreEliminationPass());
CodeGenPasses.add(createDeadCodeEliminationPass());
}
CodeGenPasses.add(createSPIRVWriterPass(*OS));
break;
Expand Down

0 comments on commit e2b3b46

Please sign in to comment.