summaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/Mem2Reg.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-04-20 06:27:13 +0000
committerOwen Anderson <resistor@mac.com>2007-04-20 06:27:13 +0000
commitdf07335b4648c4cc255343081fdf61319d90431d (patch)
tree54451d17444f596d8e882e61176d5031414ddaa6 /lib/Transforms/Utils/Mem2Reg.cpp
parent13e3a292c55137c63df13f49c723fa53371ada1e (diff)
downloadexternal_llvm-df07335b4648c4cc255343081fdf61319d90431d.zip
external_llvm-df07335b4648c4cc255343081fdf61319d90431d.tar.gz
external_llvm-df07335b4648c4cc255343081fdf61319d90431d.tar.bz2
Move more passes to using ETForest instead of DominatorTree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Mem2Reg.cpp')
-rw-r--r--lib/Transforms/Utils/Mem2Reg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp
index 6e2bcb0..9bcf0ab 100644
--- a/lib/Transforms/Utils/Mem2Reg.cpp
+++ b/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;
}