Lines Matching refs:Blocks
253 Blocks(buildExtractionBlockSet(BBs, DT, AllowVarArgs, AllowAlloca)), in CodeExtractor()
262 Blocks(buildExtractionBlockSet(L.getBlocks(), &DT, in CodeExtractor()
269 static bool definedInRegion(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInRegion() argument
271 if (Blocks.count(I->getParent())) in definedInRegion()
279 static bool definedInCaller(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInCaller() argument
282 if (!Blocks.count(I->getParent())) in definedInCaller()
287 static BasicBlock *getCommonExitBlock(const SetVector<BasicBlock *> &Blocks) { in getCommonExitBlock() argument
292 if (Blocks.count(Succ)) in getCommonExitBlock()
304 if (any_of(Blocks, hasNonCommonExitSucc)) in getCommonExitBlock()
376 Function *Func = (*Blocks.begin())->getParent(); in isLegalToShrinkwrapLifetimeMarkers()
378 if (Blocks.count(&BB)) in isLegalToShrinkwrapLifetimeMarkers()
389 assert(!Blocks.count(CommonExitBlock) && in findOrCreateBlockForHoisting()
392 if (!Blocks.count(Pred)) in findOrCreateBlockForHoisting()
430 if (Blocks.count(Pred)) in findOrCreateBlockForHoisting()
435 Blocks.insert(CommonExitBlock); in findOrCreateBlockForHoisting()
473 if (!definedInRegion(Blocks, U)) in getLifetimeMarkers()
480 Info.SinkLifeStart = !definedInRegion(Blocks, Info.LifeStart); in getLifetimeMarkers()
481 Info.HoistLifeEnd = !definedInRegion(Blocks, Info.LifeEnd); in getLifetimeMarkers()
497 Function *Func = (*Blocks.begin())->getParent(); in findAllocas()
498 ExitBlock = getCommonExitBlock(Blocks); in findAllocas()
520 if (Blocks.count(BB)) in findAllocas()
543 if (!definedInRegion(Blocks, U)) in findAllocas()
558 if (definedInRegion(Blocks, IntrInst)) in findAllocas()
592 if (!definedInRegion(Blocks, U)) { in findAllocas()
610 if (!definedInRegion(Blocks, BitcastAddr)) { in findAllocas()
620 if (Blocks.empty()) in isEligible()
622 BasicBlock *Header = *Blocks.begin(); in isEligible()
637 if (Blocks.count(&BB)) in isEligible()
648 for (BasicBlock *BB : Blocks) { in findInputsOutputs()
654 if (!SinkCands.count(V) && definedInCaller(Blocks, V)) in findInputsOutputs()
659 if (!definedInRegion(Blocks, U)) { in findInputsOutputs()
682 if (Blocks.count(PN->getIncomingBlock(i))) in severSplitPHINodesOfEntry()
701 Blocks.remove(OldPred); in severSplitPHINodesOfEntry()
702 Blocks.insert(NewBB); in severSplitPHINodesOfEntry()
712 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodesOfEntry()
732 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodesOfEntry()
755 if (Blocks.count(PN.getIncomingBlock(i))) in severSplitPHINodesOfExits()
772 if (Blocks.count(PredBB)) in severSplitPHINodesOfExits()
775 Blocks.insert(NewBB); in severSplitPHINodesOfExits()
792 for (BasicBlock *Block : Blocks) in splitReturnBlocks()
1029 if (Blocks.count(inst->getParent())) in constructFunction()
1053 !Blocks.count(I->getParent())) in constructFunction()
1065 static void eraseLifetimeMarkersOnInputs(const SetVector<BasicBlock *> &Blocks, in eraseLifetimeMarkersOnInputs() argument
1068 for (BasicBlock *BB : Blocks) { in eraseLifetimeMarkersOnInputs()
1078 if (SunkAllocas.count(Mem) || definedInRegion(Blocks, Mem)) in eraseLifetimeMarkersOnInputs()
1263 if (!Blocks.count(inst->getParent())) in emitCallAndSwitchStatement()
1284 if (Blocks.count(OldTarget)) in emitCallAndSwitchStatement()
1318 for (BasicBlock *Block : Blocks) { in emitCallAndSwitchStatement()
1321 if (Blocks.count(TI->getSuccessor(i))) in emitCallAndSwitchStatement()
1360 Blocks.count(InsertBefore->getParent())) && in emitCallAndSwitchStatement()
1438 Function *oldFunc = (*Blocks.begin())->getParent(); in moveCodeToFunction()
1443 for (BasicBlock *Block : Blocks) { in moveCodeToFunction()
1640 BasicBlock *header = *Blocks.begin(); in extractCodeRegion()
1649 if (Blocks.count(Pred)) in extractCodeRegion()
1658 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1676 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1678 if (!Blocks.count(Succ)) { in extractCodeRegion()
1690 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1693 if (Blocks.count(TI->getSuccessor(i))) in extractCodeRegion()
1719 any_of(Blocks, [&BranchI](const BasicBlock *BB) { in extractCodeRegion()
1769 eraseLifetimeMarkersOnInputs(Blocks, SinkingCands, LifetimesStart); in extractCodeRegion()
1808 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion()
1817 if (!Blocks.count(PN.getIncomingBlock(i))) in extractCodeRegion()