From: Devang Patel Date: Thu, 7 Jun 2007 18:40:55 +0000 (+0000) Subject: Use DominatorTree instead of ETForest. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=387b8cbc2d0c4135c9a2ade2a5a00ed0e6479b88;p=oota-llvm.git Use DominatorTree instead of ETForest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37494 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index d9f57c486c4..d7194bb3d66 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/lib/Transforms/Scalar/GCSE.cpp @@ -68,9 +68,9 @@ bool GCSE::runOnFunction(Function &F) { bool Changed = false; // Get pointers to the analysis results that we will be using... - ETForest &EF = getAnalysis(); - ValueNumbering &VN = getAnalysis(); DominatorTree &DT = getAnalysis(); + ETForest &ET = getAnalysis(); + ValueNumbering &VN = getAnalysis(); std::vector EqualValues; @@ -145,7 +145,7 @@ bool GCSE::runOnFunction(Function &F) { if (OtherI->getParent() == BB) Dominates = BlockInsts.count(OtherI); else - Dominates = EF.dominates(OtherI->getParent(), BB); + Dominates = ET.dominates(OtherI->getParent(), BB); if (Dominates) { // Okay, we found an instruction with the same value as this one