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(
5663
5663
// Iterate while there is work to do.
5664
5664
unsigned Iteration = 0 ;
5665
5665
while (true ) {
5666
- ++Iteration;
5667
-
5668
- if (Iteration > Opts.MaxIterations && !VerifyFixpoint) {
5666
+ if (Iteration >= Opts.MaxIterations && !VerifyFixpoint) {
5669
5667
LLVM_DEBUG (dbgs () << " \n\n [IC] Iteration limit #" << Opts.MaxIterations
5670
5668
<< " on " << F.getName ()
5671
5669
<< " reached; stopping without verifying fixpoint\n " );
5672
5670
break ;
5673
5671
}
5674
5672
5673
+ ++Iteration;
5675
5674
++NumWorklistIterations;
5676
5675
LLVM_DEBUG (dbgs () << " \n\n INSTCOMBINE ITERATION #" << Iteration << " on "
5677
5676
<< F.getName () << " \n " );
You can’t perform that action at this time.
0 commit comments