Skip to content

Commit b2d09c4

Browse files
author
Prem Chintalapudi
committed
Make loop-idiom useful
1 parent 63f5b8a commit b2d09c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aotcompile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,6 @@ void addOptimizationPasses(legacy::PassManagerBase *PM, int opt_level,
709709
PM->add(createAllocOptPass());
710710
PM->add(createLoopRotatePass());
711711
// moving IndVarSimplify here prevented removing the loop in perf_sumcartesian(10:-1:1)
712-
PM->add(createLoopIdiomPass());
713712
#ifdef USE_POLLY
714713
// LCSSA (which has already run at this point due to the dependencies of the
715714
// above passes) introduces redundant phis that hinder Polly. Therefore we
@@ -729,6 +728,7 @@ void addOptimizationPasses(legacy::PassManagerBase *PM, int opt_level,
729728
PM->add(createInductiveRangeCheckEliminationPass());
730729
// Subsequent passes not stripping metadata from terminator
731730
PM->add(createInstSimplifyLegacyPass());
731+
PM->add(createLoopIdiomPass());
732732
PM->add(createIndVarSimplifyPass());
733733
PM->add(createLoopDeletionPass());
734734
PM->add(createSimpleLoopUnrollPass());

0 commit comments

Comments
 (0)