From a97e040e05f035f0ecbd2afeee3d21a41ef5ad53 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 7 Jun 2007 18:45:06 +0000 Subject: Use DominatorTree instead of ETForest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37495 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GCSE.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index d7194bb3d6..93ed8c4fa9 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/lib/Transforms/Scalar/GCSE.cpp @@ -48,7 +48,6 @@ namespace { // This transformation requires dominator and immediate dominator info virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesCFG(); - AU.addRequired(); AU.addRequired(); AU.addRequired(); } @@ -69,7 +68,6 @@ bool GCSE::runOnFunction(Function &F) { // Get pointers to the analysis results that we will be using... DominatorTree &DT = getAnalysis(); - ETForest &ET = getAnalysis(); ValueNumbering &VN = getAnalysis(); std::vector EqualValues; @@ -145,7 +143,7 @@ bool GCSE::runOnFunction(Function &F) { if (OtherI->getParent() == BB) Dominates = BlockInsts.count(OtherI); else - Dominates = ET.dominates(OtherI->getParent(), BB); + Dominates = DT.dominates(OtherI->getParent(), BB); if (Dominates) { // Okay, we found an instruction with the same value as this one -- cgit v1.2.3