@@ -187,13 +187,11 @@ template <typename LatticeT> struct DataflowAnalysisState {
187
187
// / `PostVisitCFG` on each CFG element with the final analysis results at that
188
188
// / program point.
189
189
// /
190
- // / `MaxBlockVisits` caps the number of block visits during analysis. It doesn't
191
- // / distinguish between repeat visits to the same block and visits to distinct
192
- // / blocks. This parameter is a backstop to prevent infintite loops, in the case
193
- // / of bugs in the lattice and/or transfer functions that prevent the analysis
194
- // / from converging. The default value is essentially arbitrary -- large enough
195
- // / to accomodate what seems like any reasonable CFG, but still small enough to
196
- // / limit the cost of hitting the limit.
190
+ // / `MaxBlockVisits` caps the number of block visits during analysis. See
191
+ // / `runTypeErasedDataflowAnalysis` for a full description. The default value is
192
+ // / essentially arbitrary -- large enough to accommodate what seems like any
193
+ // / reasonable CFG, but still small enough to limit the cost of hitting the
194
+ // / limit.
197
195
template <typename AnalysisT>
198
196
llvm::Expected<std::vector<
199
197
std::optional<DataflowAnalysisState<typename AnalysisT::Lattice>>>>
@@ -271,13 +269,9 @@ auto createAnalysis(ASTContext &ASTCtx, Environment &Env)
271
269
// / - This limit is still low enough to keep runtimes acceptable (on typical
272
270
// / machines) in cases where we hit the limit.
273
271
// /
274
- // / `MaxBlockVisits` caps the number of block visits during analysis. It doesn't
275
- // / distinguish between repeat visits to the same block and visits to distinct
276
- // / blocks. This parameter is a backstop to prevent infintite loops, in the case
277
- // / of bugs in the lattice and/or transfer functions that prevent the analysis
278
- // / from converging. The default value is essentially arbitrary -- large enough
279
- // / to accomodate what seems like any reasonable CFG, but still small enough to
280
- // / limit the cost of hitting the limit.
272
+ // / `MaxBlockVisits` caps the number of block visits during analysis. See
273
+ // / `runDataflowAnalysis` for a full description and explanation of the default
274
+ // / value.
281
275
template <typename AnalysisT, typename Diagnostic>
282
276
llvm::Expected<llvm::SmallVector<Diagnostic>> diagnoseFunction (
283
277
const FunctionDecl &FuncDecl, ASTContext &ASTCtx,
0 commit comments