From 44c4a3f18fefe058f26e0388734d5b3993bb088f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 May 2002 19:32:07 +0000 Subject: [PATCH] Mark analyses that only depend on the CFG of a function llvm-svn: 2507 --- lib/Analysis/IntervalPartition.cpp | 2 +- lib/Analysis/LoopInfo.cpp | 2 +- lib/Analysis/PostDominators.cpp | 16 ++++++++-------- lib/VMCore/Dominators.cpp | 16 ++++++++-------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/Analysis/IntervalPartition.cpp b/lib/Analysis/IntervalPartition.cpp index a774c5c2b2d..5dfccd2c80c 100644 --- a/lib/Analysis/IntervalPartition.cpp +++ b/lib/Analysis/IntervalPartition.cpp @@ -10,7 +10,7 @@ using std::make_pair; -AnalysisID IntervalPartition::ID(AnalysisID::create()); +AnalysisID IntervalPartition::ID(AnalysisID::create(), true); //===----------------------------------------------------------------------===// // IntervalPartition Implementation diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 244db306496..d99f0f70d92 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -13,7 +13,7 @@ #include "Support/DepthFirstIterator.h" #include -AnalysisID LoopInfo::ID(AnalysisID::create()); +AnalysisID LoopInfo::ID(AnalysisID::create(), true); //===----------------------------------------------------------------------===// // Loop implementation diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index f542d112b87..9697f1f99a2 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.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, diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index f542d112b87..9697f1f99a2 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,