From 6a257fe6d20a62536d13daed3508a83d0588c27e Mon Sep 17 00:00:00 2001 From: Denis Bakhvalov Date: Tue, 2 Mar 2021 11:30:52 -0800 Subject: [PATCH] Returned the cleanup pipeline --- llvm/tools/sycl-post-link/sycl-post-link.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/tools/sycl-post-link/sycl-post-link.cpp b/llvm/tools/sycl-post-link/sycl-post-link.cpp index 8e7f961fd1f75..88ba12768717a 100644 --- a/llvm/tools/sycl-post-link/sycl-post-link.cpp +++ b/llvm/tools/sycl-post-link/sycl-post-link.cpp @@ -689,6 +689,11 @@ static void LowerEsimdConstructs(Module &M) { MPM.add(createEarlyCSEPass(true)); MPM.add(createInstructionCombiningPass()); MPM.add(createDeadCodeEliminationPass()); + // TODO: maybe remove some passes below that don't affect code quality + MPM.add(createSROAPass()); + MPM.add(createEarlyCSEPass(true)); + MPM.add(createInstructionCombiningPass()); + MPM.add(createDeadCodeEliminationPass()); } MPM.add(createGenXSPIRVWriterAdaptorPass()); MPM.run(M);