diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/GVNPRE.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/GVNPRE.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVNPRE.cpp b/llvm/lib/Transforms/Scalar/GVNPRE.cpp index f3ca084df40..f4c002cf41d 100644 --- a/llvm/lib/Transforms/Scalar/GVNPRE.cpp +++ b/llvm/lib/Transforms/Scalar/GVNPRE.cpp @@ -88,7 +88,7 @@ namespace { // For a given block, calculate the generated expressions, temporaries, // and the AVAIL_OUT set void CalculateAvailOut(ValueTable& VN, std::set<Value*, ExprLT>& MS, - DominatorTree::DomTreeNode* DI, + DomTreeNode* DI, std::set<Value*, ExprLT>& currExps, std::set<PHINode*>& currPhis, std::set<Value*>& currTemps, @@ -271,7 +271,7 @@ void GVNPRE::dump_unique(GVNPRE::ValueTable& VN, std::set<Value*, ExprLT>& s) { } void GVNPRE::CalculateAvailOut(GVNPRE::ValueTable& VN, std::set<Value*, ExprLT>& MS, - DominatorTree::DomTreeNode* DI, + DomTreeNode* DI, std::set<Value*, ExprLT>& currExps, std::set<PHINode*>& currPhis, std::set<Value*>& currTemps, @@ -333,7 +333,7 @@ bool GVNPRE::runOnFunction(Function &F) { // First Phase of BuildSets - calculate AVAIL_OUT // Top-down walk of the dominator tree - for (df_iterator<DominatorTree::DomTreeNode*> DI = df_begin(DT.getRootNode()), + for (df_iterator<DomTreeNode*> DI = df_begin(DT.getRootNode()), E = df_end(DT.getRootNode()); DI != E; ++DI) { // Get the sets to update for this block @@ -359,7 +359,7 @@ bool GVNPRE::runOnFunction(Function &F) { std::set<Value*, ExprLT> anticOut; // Top-down walk of the postdominator tree - for (df_iterator<PostDominatorTree::DomTreeNode*> PDI = + for (df_iterator<DomTreeNode*> PDI = df_begin(PDT.getRootNode()), E = df_end(DT.getRootNode()); PDI != E; ++PDI) { BasicBlock* BB = PDI->getBlock(); |