Skip to content

Commit 6a257fe

Browse files
Returned the cleanup pipeline
1 parent bdc5947 commit 6a257fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/tools/sycl-post-link/sycl-post-link.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,11 @@ static void LowerEsimdConstructs(Module &M) {
689689
MPM.add(createEarlyCSEPass(true));
690690
MPM.add(createInstructionCombiningPass());
691691
MPM.add(createDeadCodeEliminationPass());
692+
// TODO: maybe remove some passes below that don't affect code quality
693+
MPM.add(createSROAPass());
694+
MPM.add(createEarlyCSEPass(true));
695+
MPM.add(createInstructionCombiningPass());
696+
MPM.add(createDeadCodeEliminationPass());
692697
}
693698
MPM.add(createGenXSPIRVWriterAdaptorPass());
694699
MPM.run(M);

0 commit comments

Comments
 (0)