Lines Matching defs:PreEntryBlock
341 BasicBlock *PreEntryBlock,
345 BranchInst *createMergedBranch(BasicBlock *PreEntryBlock,
349 void fixupBranchesAndSelects(CHRScope *Scope, BasicBlock *PreEntryBlock,
1639 CHRScope *Scope, BasicBlock *PreEntryBlock) {
1651 assert((I->getParent() == PreEntryBlock ||
1653 "Must have been hoisted to PreEntryBlock or outside the scope");
1665 assert((I->getParent() == PreEntryBlock ||
1667 "Must have been hoisted to PreEntryBlock or outside the scope");
1728 BasicBlock *PreEntryBlock = EntryBlock;
1731 // Clone the blocks in the scope (excluding the PreEntryBlock) to split into a
1734 cloneScopeBlocks(Scope, PreEntryBlock, ExitBlock, LastRegion, VMap);
1738 BranchInst *MergedBr = createMergedBranch(PreEntryBlock, EntryBlock,
1746 hoistScopeConditions(Scope, PreEntryBlock->getTerminator(), TrivialPHIs, DT);
1749 assertBranchOrSelectConditionHoisted(Scope, PreEntryBlock);
1754 fixupBranchesAndSelects(Scope, PreEntryBlock, MergedBr,
1759 // PreEntryBlock) to split into a hot path and a cold path and update the PHIs
1762 BasicBlock *PreEntryBlock,
1775 assert(BB != PreEntryBlock && "Don't copy the preetntry block");
1820 BranchInst *CHR::createMergedBranch(BasicBlock *PreEntryBlock,
1824 BranchInst *OldBR = cast<BranchInst>(PreEntryBlock->getTerminator());
1838 NewBR->insertInto(PreEntryBlock, PreEntryBlock->end());
1847 BasicBlock *PreEntryBlock,
1853 IRBuilder<> IRB(PreEntryBlock->getTerminator());