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()
733 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodesOfEntry()
756 if (Blocks.count(PN.getIncomingBlock(i))) in severSplitPHINodesOfExits()
774 if (Blocks.count(PredBB)) in severSplitPHINodesOfExits()
777 Blocks.insert(NewBB); in severSplitPHINodesOfExits()
794 for (BasicBlock *Block : Blocks) in splitReturnBlocks()
1021 if (none_of(Blocks, [](const BasicBlock *BB) { in constructFunction()
1055 if (Blocks.count(inst->getParent())) in constructFunction()
1079 !Blocks.count(I->getParent())) in constructFunction()
1091 static void eraseLifetimeMarkersOnInputs(const SetVector<BasicBlock *> &Blocks, in eraseLifetimeMarkersOnInputs() argument
1094 for (BasicBlock *BB : Blocks) { in eraseLifetimeMarkersOnInputs()
1104 if (SunkAllocas.count(Mem) || definedInRegion(Blocks, Mem)) in eraseLifetimeMarkersOnInputs()
1282 if (!Blocks.count(inst->getParent())) in emitCallAndSwitchStatement()
1303 if (Blocks.count(OldTarget)) in emitCallAndSwitchStatement()
1337 for (BasicBlock *Block : Blocks) { in emitCallAndSwitchStatement()
1340 if (Blocks.count(TI->getSuccessor(i))) in emitCallAndSwitchStatement()
1378 Blocks.count(InsertPt->getParent())) && in emitCallAndSwitchStatement()
1461 for (BasicBlock *Block : Blocks) { in moveCodeToFunction()
1724 BasicBlock *header = *Blocks.begin(); in extractCodeRegion()
1733 if (Blocks.count(Pred)) in extractCodeRegion()
1742 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1760 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1762 if (!Blocks.count(Succ)) { in extractCodeRegion()
1774 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1776 if (!Blocks.contains(OldTarget)) in extractCodeRegion()
1802 any_of(Blocks, [&BranchI](const BasicBlock *BB) { in extractCodeRegion()
1856 eraseLifetimeMarkersOnInputs(Blocks, SinkingCands, LifetimesStart); in extractCodeRegion()
1895 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion()
1904 if (!Blocks.count(PN.getIncomingBlock(i))) in extractCodeRegion()