Changes in directory llvm/lib/Transforms/Scalar:
LICM.cpp updated: 1.105 -> 1.106 ScalarReplAggregates.cpp updated: 1.96 -> 1.97 --- Log message: Use DominatorTree instead of ETForest. This allows faster immediate domiantor walk. --- Diffs of the changes: (+5 -5) LICM.cpp | 4 ++-- ScalarReplAggregates.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) Index: llvm/lib/Transforms/Scalar/LICM.cpp diff -u llvm/lib/Transforms/Scalar/LICM.cpp:1.105 llvm/lib/Transforms/Scalar/LICM.cpp:1.106 --- llvm/lib/Transforms/Scalar/LICM.cpp:1.105 Tue Jun 5 11:05:55 2007 +++ llvm/lib/Transforms/Scalar/LICM.cpp Thu Jun 7 16:57:03 2007 @@ -565,7 +565,7 @@ if (AI) { std::vector<AllocaInst*> Allocas; Allocas.push_back(AI); - PromoteMemToReg(Allocas, *ET, *DF, CurAST); + PromoteMemToReg(Allocas, *DT, *DF, CurAST); } } } @@ -746,7 +746,7 @@ PromotedAllocas.reserve(PromotedValues.size()); for (unsigned i = 0, e = PromotedValues.size(); i != e; ++i) PromotedAllocas.push_back(PromotedValues[i].first); - PromoteMemToReg(PromotedAllocas, *ET, *DF, CurAST); + PromoteMemToReg(PromotedAllocas, *DT, *DF, CurAST); } /// FindPromotableValuesInLoop - Check the current loop for stores to definite Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.96 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.97 --- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.96 Wed May 30 01:11:23 2007 +++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp Thu Jun 7 16:57:03 2007 @@ -58,7 +58,7 @@ // getAnalysisUsage - This pass does not require any passes, but we know it // will not alter the CFG, so say so. virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired<ETForest>(); + AU.addRequired<DominatorTree>(); AU.addRequired<DominanceFrontier>(); AU.addRequired<TargetData>(); AU.setPreservesCFG(); @@ -138,7 +138,7 @@ bool SROA::performPromotion(Function &F) { std::vector<AllocaInst*> Allocas; - ETForest &ET = getAnalysis<ETForest>(); + DominatorTree &DT = getAnalysis<DominatorTree>(); DominanceFrontier &DF = getAnalysis<DominanceFrontier>(); BasicBlock &BB = F.getEntryBlock(); // Get the entry node for the function @@ -157,7 +157,7 @@ if (Allocas.empty()) break; - PromoteMemToReg(Allocas, ET, DF); + PromoteMemToReg(Allocas, DT, DF); NumPromoted += Allocas.size(); Changed = true; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits