diff options
author | Owen Anderson <resistor@mac.com> | 2007-04-20 06:27:13 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-04-20 06:27:13 +0000 |
commit | 2da606c75778b5bc2274046618d2fcad9870c0dc (patch) | |
tree | 7de300f182bc26070a2887bd1dfc9b0f5cf2687d /llvm/lib/Transforms/Utils/Mem2Reg.cpp | |
parent | 7a5136d8c5788ffbde83979dc27ec79c64dd5bd2 (diff) | |
download | bcm5719-llvm-2da606c75778b5bc2274046618d2fcad9870c0dc.tar.gz bcm5719-llvm-2da606c75778b5bc2274046618d2fcad9870c0dc.zip |
Move more passes to using ETForest instead of DominatorTree.
llvm-svn: 36271
Diffstat (limited to 'llvm/lib/Transforms/Utils/Mem2Reg.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Mem2Reg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Mem2Reg.cpp b/llvm/lib/Transforms/Utils/Mem2Reg.cpp index 6e2bcb08fe3..9bcf0ab6486 100644 --- a/llvm/lib/Transforms/Utils/Mem2Reg.cpp +++ b/llvm/lib/Transforms/Utils/Mem2Reg.cpp @@ -36,7 +36,7 @@ namespace { // getAnalysisUsage - We need dominance frontiers // virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired<DominatorTree>(); + AU.addRequired<ETForest>(); AU.addRequired<DominanceFrontier>(); AU.addRequired<TargetData>(); AU.setPreservesCFG(); @@ -60,7 +60,7 @@ bool PromotePass::runOnFunction(Function &F) { bool Changed = false; - DominatorTree &DT = getAnalysis<DominatorTree>(); + ETForest &ET = getAnalysis<ETForest>(); DominanceFrontier &DF = getAnalysis<DominanceFrontier>(); while (1) { @@ -75,7 +75,7 @@ bool PromotePass::runOnFunction(Function &F) { if (Allocas.empty()) break; - PromoteMemToReg(Allocas, DT, DF, TD); + PromoteMemToReg(Allocas, ET, DF, TD); NumPromoted += Allocas.size(); Changed = true; } |