File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5663,15 +5663,14 @@ static bool combineInstructionsOverFunction(
56635663 // Iterate while there is work to do.
56645664 unsigned Iteration = 0 ;
56655665 while (true ) {
5666- ++Iteration;
5667-
5668- if (Iteration > Opts.MaxIterations && !VerifyFixpoint) {
5666+ if (Iteration >= Opts.MaxIterations && !VerifyFixpoint) {
56695667 LLVM_DEBUG (dbgs () << " \n\n [IC] Iteration limit #" << Opts.MaxIterations
56705668 << " on " << F.getName ()
56715669 << " reached; stopping without verifying fixpoint\n " );
56725670 break ;
56735671 }
56745672
5673+ ++Iteration;
56755674 ++NumWorklistIterations;
56765675 LLVM_DEBUG (dbgs () << " \n\n INSTCOMBINE ITERATION #" << Iteration << " on "
56775676 << F.getName () << " \n " );
You can’t perform that action at this time.
0 commit comments