diff options
Diffstat (limited to 'lib/Transforms/Scalar/GCSE.cpp')
-rw-r--r-- | lib/Transforms/Scalar/GCSE.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index a785685b2c..3d6e624811 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/lib/Transforms/Scalar/GCSE.cpp @@ -45,7 +45,7 @@ namespace { // This transformation requires dominator and immediate dominator info virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesCFG(); - AU.addRequired<DominatorSet>(); + AU.addRequired<ETForest>(); AU.addRequired<DominatorTree>(); AU.addRequired<ValueNumbering>(); } @@ -64,7 +64,7 @@ bool GCSE::runOnFunction(Function &F) { bool Changed = false; // Get pointers to the analysis results that we will be using... - DominatorSet &DS = getAnalysis<DominatorSet>(); + ETForest &EF = getAnalysis<ETForest>(); ValueNumbering &VN = getAnalysis<ValueNumbering>(); DominatorTree &DT = getAnalysis<DominatorTree>(); @@ -141,7 +141,7 @@ bool GCSE::runOnFunction(Function &F) { if (OtherI->getParent() == BB) Dominates = BlockInsts.count(OtherI); else - Dominates = DS.dominates(OtherI->getParent(), BB); + Dominates = EF.dominates(OtherI->getParent(), BB); if (Dominates) { // Okay, we found an instruction with the same value as this one |