diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-01-04 20:54:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-01-04 20:54:55 +0000 |
commit | 0c209430b4722f741b0f99bbe8f480e2ba4ffd59 (patch) | |
tree | d3bebf55548c56d04f33a1b7ca1981a78604748f /llvm/lib/CodeGen/MachineDominators.cpp | |
parent | 2bd541c5ffec3f2685afac21ceab42b967fef0cc (diff) | |
download | bcm5719-llvm-0c209430b4722f741b0f99bbe8f480e2ba4ffd59.tar.gz bcm5719-llvm-0c209430b4722f741b0f99bbe8f480e2ba4ffd59.zip |
Don't recalculate the loop info and loop dominators analyses if they're
preserved.
llvm-svn: 45596
Diffstat (limited to 'llvm/lib/CodeGen/MachineDominators.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineDominators.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp index e343240ea27..7c521ccb0e8 100644 --- a/llvm/lib/CodeGen/MachineDominators.cpp +++ b/llvm/lib/CodeGen/MachineDominators.cpp @@ -13,12 +13,17 @@ //===----------------------------------------------------------------------===// #include "llvm/CodeGen/MachineDominators.h" +#include "llvm/CodeGen/Passes.h" using namespace llvm; TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>); TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>); -char MachineDominatorTree::ID = 0; -static RegisterPass<MachineDominatorTree> -E("machinedomtree", "MachineDominator Tree Construction", true); +namespace { + char MachineDominatorTree::ID = 0; + RegisterPass<MachineDominatorTree> + E("machinedomtree", "MachineDominator Tree Construction", true); +} + +const PassInfo *llvm::MachineDominatorsID = E.getPassInfo(); |