File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -118,21 +118,17 @@ LogicalResult DataFlowSolver::initializeAndRun(Operation *top) {
118
118
}
119
119
120
120
// Run the analysis until fixpoint.
121
- do {
122
- // Exhaust the worklist.
123
- while (!worklist.empty ()) {
124
- auto [point, analysis] = worklist.front ();
125
- worklist.pop ();
126
-
127
- DATAFLOW_DEBUG (llvm::dbgs () << " Invoking '" << analysis->debugName
128
- << " ' on: " << point << " \n " );
129
- if (failed (analysis->visit (point)))
130
- return failure ();
131
- }
132
-
133
- // Iterate until all states are in some initialized state and the worklist
134
- // is exhausted.
135
- } while (!worklist.empty ());
121
+ // Iterate until all states are in some initialized state and the worklist
122
+ // is exhausted.
123
+ while (!worklist.empty ()) {
124
+ auto [point, analysis] = worklist.front ();
125
+ worklist.pop ();
126
+
127
+ DATAFLOW_DEBUG (llvm::dbgs () << " Invoking '" << analysis->debugName
128
+ << " ' on: " << point << " \n " );
129
+ if (failed (analysis->visit (point)))
130
+ return failure ();
131
+ }
136
132
137
133
return success ();
138
134
}
You can’t perform that action at this time.
0 commit comments