diff options
author | Owen Anderson <resistor@mac.com> | 2007-10-03 21:25:45 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-10-03 21:25:45 +0000 |
commit | 8313e75ea77b57b1d4eda0f95656a44c8256c2f4 (patch) | |
tree | 1420b3d807b1db983bb44a7cb49847ece59d0480 /llvm/lib/VMCore/Dominators.cpp | |
parent | 87337924d59aa6cffe61b7297887a7b3738ff58d (diff) | |
download | bcm5719-llvm-8313e75ea77b57b1d4eda0f95656a44c8256c2f4.tar.gz bcm5719-llvm-8313e75ea77b57b1d4eda0f95656a44c8256c2f4.zip |
Completely merge the implementation details of DomTree and PostDomTree.
Also, add a FIXME for a bug in PostDomTree calculation I noticed while writing this,
llvm-svn: 42593
Diffstat (limited to 'llvm/lib/VMCore/Dominators.cpp')
-rw-r--r-- | llvm/lib/VMCore/Dominators.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp index 57cf6702868..164fb64d0ec 100644 --- a/llvm/lib/VMCore/Dominators.cpp +++ b/llvm/lib/VMCore/Dominators.cpp @@ -21,9 +21,9 @@ #include "llvm/ADT/SetOperations.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/Analysis/DominatorInternals.h" #include "llvm/Instructions.h" #include "llvm/Support/Streams.h" -#include "DominatorCalculation.h" #include <algorithm> using namespace llvm; @@ -357,7 +357,10 @@ bool DominatorTree::runOnFunction(Function &F) { DomTreeNodes[&F.getEntryBlock()] = 0; Vertex.push_back(0); - DTcalculate(*this, F); + Calculate<BasicBlock*>(*this, F); + + updateDFSNumbers(); + return false; } |