llvm.org GIT mirror llvm / d44008a
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 Owen Anderson 12 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
313313 // Can we eliminate this phi node now?
314314 if (Value *V = PN->hasConstantValue(true)) {
315315 if (!isa(V) ||
316 getAnalysis<DominatorSet>().dominates(cast(V), PN)) {
316 getAnalysis<ETForest>().dominates(cast(V), PN)) {
317317 PN->replaceAllUsesWith(V);
318318 if (AA) AA->deleteValue(PN);
319319 BB->getInstList().erase(PN);
541541
542542 // Determine which blocks should stay in L and which should be moved out to
543543 // the Outer loop now.
544 DominatorSet &DS = getAnalysis();
545544 std::set BlocksInL;
546545 for (pred_iterator PI = pred_begin(Header), E = pred_end(Header); PI!=E; ++PI)
547 if (DS.dominates(Header, *PI))
546 if (EF->dominates(Header, *PI))
548547 AddBlockAndPredsToSet(*PI, Header, BlocksInL);
549548
550549