forked from OSchip/llvm-project
IdempotentOperationChecker: don't repeatedly recompute block reachability.
llvm-svn: 125548
This commit is contained in:
parent
8d53ac81ec
commit
4ea9004fe8
|
@ -563,8 +563,9 @@ IdempotentOperationChecker::pathWasCompletelyAnalyzed(const CFG *cfg,
|
|||
const CFGBlock *CB,
|
||||
const CFGStmtMap *CBM,
|
||||
const CoreEngine &CE) {
|
||||
|
||||
CRA.reset(new CFGReachabilityAnalysis(*cfg));
|
||||
|
||||
if (!CRA.get())
|
||||
CRA.reset(new CFGReachabilityAnalysis(*cfg));
|
||||
|
||||
// Test for reachability from any aborted blocks to this block
|
||||
typedef CoreEngine::BlocksAborted::const_iterator AbortedIterator;
|
||||
|
|
Loading…
Reference in New Issue