mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Major repairs to the post-dominators implementation. Patch from Florian Brandner!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -11,9 +11,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "postdomtree"
|
||||
|
||||
#include "llvm/Analysis/PostDominators.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/Support/CFG.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/ADT/DepthFirstIterator.h"
|
||||
#include "llvm/ADT/SetOperations.h"
|
||||
#include "llvm/Analysis/DominatorInternals.h"
|
||||
@ -30,6 +33,7 @@ F("postdomtree", "Post-Dominator Tree Construction", true, true);
|
||||
|
||||
bool PostDominatorTree::runOnFunction(Function &F) {
|
||||
DT->recalculate(F);
|
||||
DEBUG(DT->dump());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user