From 07a228d1f7342c2fbe7dd7a307ee43b6bc026fc7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 May 2002 19:32:07 +0000 Subject: Mark analyses that only depend on the CFG of a function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2507 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Dominators.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/VMCore/Dominators.cpp') diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index f542d11..9697f1f 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -18,8 +18,8 @@ using std::set; // DominatorSet Implementation //===----------------------------------------------------------------------===// -AnalysisID DominatorSet::ID(AnalysisID::create()); -AnalysisID DominatorSet::PostDomID(AnalysisID::create()); +AnalysisID DominatorSet::ID(AnalysisID::create(), true); +AnalysisID DominatorSet::PostDomID(AnalysisID::create(), true); bool DominatorSet::runOnFunction(Function *F) { Doms.clear(); // Reset from the last time we were run... @@ -146,8 +146,8 @@ void DominatorSet::getAnalysisUsage(AnalysisUsage &AU) const { // ImmediateDominators Implementation //===----------------------------------------------------------------------===// -AnalysisID ImmediateDominators::ID(AnalysisID::create()); -AnalysisID ImmediateDominators::PostDomID(AnalysisID::create()); +AnalysisID ImmediateDominators::ID(AnalysisID::create(), true); +AnalysisID ImmediateDominators::PostDomID(AnalysisID::create(), true); // calcIDoms - Calculate the immediate dominator mapping, given a set of // dominators for every basic block. @@ -190,8 +190,8 @@ void ImmediateDominators::calcIDoms(const DominatorSet &DS) { // DominatorTree Implementation //===----------------------------------------------------------------------===// -AnalysisID DominatorTree::ID(AnalysisID::create()); -AnalysisID DominatorTree::PostDomID(AnalysisID::create()); +AnalysisID DominatorTree::ID(AnalysisID::create(), true); +AnalysisID DominatorTree::PostDomID(AnalysisID::create(), true); // DominatorTree::reset - Free all of the tree node memory. // @@ -324,8 +324,8 @@ void DominatorTree::calculate(const DominatorSet &DS) { // DominanceFrontier Implementation //===----------------------------------------------------------------------===// -AnalysisID DominanceFrontier::ID(AnalysisID::create()); -AnalysisID DominanceFrontier::PostDomID(AnalysisID::create()); +AnalysisID DominanceFrontier::ID(AnalysisID::create(), true); +AnalysisID DominanceFrontier::PostDomID(AnalysisID::create(), true); const DominanceFrontier::DomSetType & DominanceFrontier::calcDomFrontier(const DominatorTree &DT, -- cgit v1.1