Skip to content

Commit 4c37555

Browse files
committed
Disable reassociation pass to check performance impact.
1 parent 968271a commit 4c37555

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/IPO/PassManagerBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,12 @@ void PassManagerBuilder::addFunctionSimplificationPasses(
427427
if (OptLevel > 1)
428428
MPM.add(createTailCallEliminationPass()); // Eliminate tail calls
429429
MPM.add(createCFGSimplificationPass()); // Merge & remove BBs
430-
MPM.add(createReassociatePass()); // Reassociate expressions
431430

432431
// Do not run loop pass pipeline in "SYCL Optimization Mode". Loop
433432
// optimizations rely on TTI, which is not accurate for SPIR target.
434433
if (!SYCLOptimizationMode) {
434+
MPM.add(createReassociatePass()); // Reassociate expressions
435+
435436
// Begin the loop pass pipeline.
436437
if (EnableSimpleLoopUnswitch) {
437438
// The simple loop unswitch pass relies on separate cleanup passes.

0 commit comments

Comments
 (0)