diff options
author | Owen Anderson <resistor@mac.com> | 2007-04-07 04:37:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-04-07 04:37:14 +0000 |
commit | d44008ae4060a4e83981fa403a964723ec0351ba (patch) | |
tree | acec880a8c6f611a94e3ec21d0492a52aa3a9e11 /lib/Transforms/Utils/LoopSimplify.cpp | |
parent | f3a9e368f68d9a9a64f8f35d4e2c03469d515bde (diff) |
Expunge a bunch of uses of DomSet from LoopSimplify. Many more remain.
This is the beginning of work for PR1171.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 044ca5b0fc..b6c262cd49 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -314,7 +314,7 @@ BasicBlock *LoopSimplify::SplitBlockPredecessors(BasicBlock *BB, // Can we eliminate this phi node now? if (Value *V = PN->hasConstantValue(true)) { if (!isa<Instruction>(V) || - getAnalysis<DominatorSet>().dominates(cast<Instruction>(V), PN)) { + getAnalysis<ETForest>().dominates(cast<Instruction>(V), PN)) { PN->replaceAllUsesWith(V); if (AA) AA->deleteValue(PN); BB->getInstList().erase(PN); @@ -542,10 +542,9 @@ Loop *LoopSimplify::SeparateNestedLoop(Loop *L) { // Determine which blocks should stay in L and which should be moved out to // the Outer loop now. - DominatorSet &DS = getAnalysis<DominatorSet>(); std::set<BasicBlock*> BlocksInL; for (pred_iterator PI = pred_begin(Header), E = pred_end(Header); PI!=E; ++PI) - if (DS.dominates(Header, *PI)) + if (EF->dominates(Header, *PI)) AddBlockAndPredsToSet(*PI, Header, BlocksInL); |