Lines Matching defs:PreEntryBlock
343 BasicBlock *PreEntryBlock,
347 BranchInst *createMergedBranch(BasicBlock *PreEntryBlock,
351 void fixupBranchesAndSelects(CHRScope *Scope, BasicBlock *PreEntryBlock,
1641 CHRScope *Scope, BasicBlock *PreEntryBlock) {
1653 assert((I->getParent() == PreEntryBlock ||
1655 "Must have been hoisted to PreEntryBlock or outside the scope");
1667 assert((I->getParent() == PreEntryBlock ||
1669 "Must have been hoisted to PreEntryBlock or outside the scope");
1730 BasicBlock *PreEntryBlock = EntryBlock;
1733 // Clone the blocks in the scope (excluding the PreEntryBlock) to split into a
1736 cloneScopeBlocks(Scope, PreEntryBlock, ExitBlock, LastRegion, VMap);
1740 BranchInst *MergedBr = createMergedBranch(PreEntryBlock, EntryBlock,
1748 hoistScopeConditions(Scope, PreEntryBlock->getTerminator(), TrivialPHIs, DT);
1751 assertBranchOrSelectConditionHoisted(Scope, PreEntryBlock);
1756 fixupBranchesAndSelects(Scope, PreEntryBlock, MergedBr,
1761 // PreEntryBlock) to split into a hot path and a cold path and update the PHIs
1764 BasicBlock *PreEntryBlock,
1777 assert(BB != PreEntryBlock && "Don't copy the preetntry block");
1822 BranchInst *CHR::createMergedBranch(BasicBlock *PreEntryBlock,
1826 BranchInst *OldBR = cast<BranchInst>(PreEntryBlock->getTerminator());
1840 NewBR->insertInto(PreEntryBlock, PreEntryBlock->end());
1849 BasicBlock *PreEntryBlock,
1855 IRBuilder<> IRB(PreEntryBlock->getTerminator());