Lines Matching refs:PredBB

553         BasicBlock *PredBB = PN->getIncomingBlock(i);  in ComputeValueKnownInPredecessors()  local
555 Value *RHS = Cmp->getOperand(1)->DoPHITranslation(BB, PredBB); in ComputeValueKnownInPredecessors()
564 cast<Constant>(RHS), PredBB, BB, in ComputeValueKnownInPredecessors()
572 Result.push_back(std::make_pair(KC, PredBB)); in ComputeValueKnownInPredecessors()
988 for (BasicBlock *PredBB : predecessors(LoadBB)) { in SimplifyPartiallyRedundantLoad()
990 if (!PredsScanned.insert(PredBB).second) in SimplifyPartiallyRedundantLoad()
994 BBIt = PredBB->end(); in SimplifyPartiallyRedundantLoad()
996 Value *PredAvailable = FindAvailableLoadedValue(LI, PredBB, BBIt, in SimplifyPartiallyRedundantLoad()
1000 OneUnavailablePred = PredBB; in SimplifyPartiallyRedundantLoad()
1009 AvailablePreds.push_back(std::make_pair(PredBB, PredAvailable)); in SimplifyPartiallyRedundantLoad()
1293 BasicBlock *PredBB = PN->getIncomingBlock(i); in ProcessBranchOnPHI() local
1294 if (BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator())) in ProcessBranchOnPHI()
1296 PredBBs[0] = PredBB; in ProcessBranchOnPHI()
1465 BasicBlock *PredBB; in ThreadEdge() local
1467 PredBB = PredBBs[0]; in ThreadEdge()
1471 PredBB = SplitBlockPreds(BB, PredBBs, ".thr_comm"); in ThreadEdge()
1475 DEBUG(dbgs() << " Threading edge from '" << PredBB->getName() << "' to '" in ThreadEdge()
1480 LVI->threadEdge(PredBB, BB, SuccBB); in ThreadEdge()
1490 NewBB->moveAfter(PredBB); in ThreadEdge()
1495 BFI->getBlockFreq(PredBB) * BPI->getEdgeProbability(PredBB, BB); in ThreadEdge()
1501 ValueMapping[PN] = PN->getIncomingValueForBlock(PredBB); in ThreadEdge()
1571 TerminatorInst *PredTerm = PredBB->getTerminator(); in ThreadEdge()
1574 BB->removePredecessor(PredBB, true); in ThreadEdge()
1584 UpdateBlockFreqAndEdgeWeight(PredBB, BB, NewBB, SuccBB); in ThreadEdge()
1604 BasicBlock *PredBB = SplitBlockPredecessors(BB, Preds, Suffix); in SplitBlockPreds() local
1609 BFI->setBlockFreq(PredBB, PredBBFreq.getFrequency()); in SplitBlockPreds()
1610 return PredBB; in SplitBlockPreds()
1616 void JumpThreadingPass::UpdateBlockFreqAndEdgeWeight(BasicBlock *PredBB, in UpdateBlockFreqAndEdgeWeight() argument
1702 BasicBlock *PredBB; in DuplicateCondBranchOnPHIIntoPred() local
1704 PredBB = PredBBs[0]; in DuplicateCondBranchOnPHIIntoPred()
1708 PredBB = SplitBlockPreds(BB, PredBBs, ".thr_comm"); in DuplicateCondBranchOnPHIIntoPred()
1714 << PredBB->getName() << "' to eliminate branch on phi. Cost: " in DuplicateCondBranchOnPHIIntoPred()
1719 BranchInst *OldPredBranch = dyn_cast<BranchInst>(PredBB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1722 PredBB = SplitEdge(PredBB, BB); in DuplicateCondBranchOnPHIIntoPred()
1723 OldPredBranch = cast<BranchInst>(PredBB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1732 ValueMapping[PN] = PN->getIncomingValueForBlock(PredBB); in DuplicateCondBranchOnPHIIntoPred()
1762 PredBB->getInstList().insert(OldPredBranch->getIterator(), New); in DuplicateCondBranchOnPHIIntoPred()
1769 AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(0), BB, PredBB, in DuplicateCondBranchOnPHIIntoPred()
1771 AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(1), BB, PredBB, in DuplicateCondBranchOnPHIIntoPred()
1805 SSAUpdate.AddAvailableValue(PredBB, ValueMapping[&I]); in DuplicateCondBranchOnPHIIntoPred()
1814 BB->removePredecessor(PredBB, true); in DuplicateCondBranchOnPHIIntoPred()