diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/lib/Analysis/CFG.cpp | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/lib/Analysis/CFG.cpp')
-rw-r--r-- | contrib/libs/llvm12/lib/Analysis/CFG.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/libs/llvm12/lib/Analysis/CFG.cpp b/contrib/libs/llvm12/lib/Analysis/CFG.cpp index 9ddc7e9d3d..33602ed716 100644 --- a/contrib/libs/llvm12/lib/Analysis/CFG.cpp +++ b/contrib/libs/llvm12/lib/Analysis/CFG.cpp @@ -14,18 +14,18 @@ #include "llvm/Analysis/CFG.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/IR/Dominators.h" -#include "llvm/Support/CommandLine.h" +#include "llvm/Support/CommandLine.h" using namespace llvm; -// The max number of basic blocks explored during reachability analysis between -// two basic blocks. This is kept reasonably small to limit compile time when -// repeatedly used by clients of this analysis (such as captureTracking). -static cl::opt<unsigned> DefaultMaxBBsToExplore( - "dom-tree-reachability-max-bbs-to-explore", cl::Hidden, - cl::desc("Max number of BBs to explore for reachability analysis"), - cl::init(32)); - +// The max number of basic blocks explored during reachability analysis between +// two basic blocks. This is kept reasonably small to limit compile time when +// repeatedly used by clients of this analysis (such as captureTracking). +static cl::opt<unsigned> DefaultMaxBBsToExplore( + "dom-tree-reachability-max-bbs-to-explore", cl::Hidden, + cl::desc("Max number of BBs to explore for reachability analysis"), + cl::init(32)); + /// FindFunctionBackedges - Analyze the specified function to find all of the /// loop backedges in the function and return them. This is a relatively cheap /// (compared to computing dominators and loop info) analysis. @@ -103,7 +103,7 @@ bool llvm::isCriticalEdge(const Instruction *TI, const BasicBlock *Dest, assert(TI->isTerminator() && "Must be a terminator to have successors!"); if (TI->getNumSuccessors() == 1) return false; - assert(is_contained(predecessors(Dest), TI->getParent()) && + assert(is_contained(predecessors(Dest), TI->getParent()) && "No edge between TI's block and Dest."); const_pred_iterator I = pred_begin(Dest), E = pred_end(Dest); @@ -161,7 +161,7 @@ bool llvm::isPotentiallyReachableFromMany( const Loop *StopLoop = LI ? getOutermostLoop(LI, StopBB) : nullptr; - unsigned Limit = DefaultMaxBBsToExplore; + unsigned Limit = DefaultMaxBBsToExplore; SmallPtrSet<const BasicBlock*, 32> Visited; do { BasicBlock *BB = Worklist.pop_back_val(); |