aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-21 17:23:45 +0000
committerDevang Patel <dpatel@apple.com>2007-06-21 17:23:45 +0000
commit0e7f728ad1ac25b0ed450fe0f8b86a38d3c2a93a (patch)
tree39c047ddd5b6ab2fbe543ec2d33eedb83f3efdb1 /include/llvm
parent2d74a318deed2b7957250cdcc04dc8e01924258b (diff)
downloadexternal_llvm-0e7f728ad1ac25b0ed450fe0f8b86a38d3c2a93a.zip
external_llvm-0e7f728ad1ac25b0ed450fe0f8b86a38d3c2a93a.tar.gz
external_llvm-0e7f728ad1ac25b0ed450fe0f8b86a38d3c2a93a.tar.bz2
Move code to update dominator information after basic block is split
from LoopSimplify.cpp to Dominator.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/Dominators.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index b934d2f..0b62c51 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/include/llvm/Analysis/Dominators.h
@@ -302,6 +302,11 @@ public:
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
}
+
+ /// splitBlock
+ /// BB is split and now it has one successor. Update dominator tree to
+ /// reflect this change.
+ void splitBlock(BasicBlock *BB);
private:
void calculate(Function& F);
DomTreeNode *getNodeForBlock(BasicBlock *BB);
@@ -587,6 +592,11 @@ public:
AU.addRequired<DominatorTree>();
}
+ /// splitBlock
+ /// BB is split and now it has one successor. Update dominace frontier to
+ /// reflect this change.
+ void splitBlock(BasicBlock *BB);
+
private:
const DomSetType &calculate(const DominatorTree &DT,
const DomTreeNode *Node);