We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a26dff commit 6ee30e8Copy full SHA for 6ee30e8
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -5663,15 +5663,14 @@ static bool combineInstructionsOverFunction(
5663
// Iterate while there is work to do.
5664
unsigned Iteration = 0;
5665
while (true) {
5666
- ++Iteration;
5667
-
5668
- if (Iteration > Opts.MaxIterations && !VerifyFixpoint) {
+ if (Iteration >= Opts.MaxIterations && !VerifyFixpoint) {
5669
LLVM_DEBUG(dbgs() << "\n\n[IC] Iteration limit #" << Opts.MaxIterations
5670
<< " on " << F.getName()
5671
<< " reached; stopping without verifying fixpoint\n");
5672
break;
5673
}
5674
+ ++Iteration;
5675
++NumWorklistIterations;
5676
LLVM_DEBUG(dbgs() << "\n\nINSTCOMBINE ITERATION #" << Iteration << " on "
5677
<< F.getName() << "\n");
0 commit comments