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()
1039 if (Blocks.count(inst->getParent())) in constructFunction()
1063 !Blocks.count(I->getParent())) in constructFunction()
1075 static void eraseLifetimeMarkersOnInputs(const SetVector<BasicBlock *> &Blocks, in eraseLifetimeMarkersOnInputs() argument
1078 for (BasicBlock *BB : Blocks) { in eraseLifetimeMarkersOnInputs()
1088 if (SunkAllocas.count(Mem) || definedInRegion(Blocks, Mem)) in eraseLifetimeMarkersOnInputs()
1266 if (!Blocks.count(inst->getParent())) in emitCallAndSwitchStatement()
1287 if (Blocks.count(OldTarget)) in emitCallAndSwitchStatement()
1321 for (BasicBlock *Block : Blocks) { in emitCallAndSwitchStatement()
1324 if (Blocks.count(TI->getSuccessor(i))) in emitCallAndSwitchStatement()
1363 Blocks.count(InsertBefore->getParent())) && in emitCallAndSwitchStatement()
1442 for (BasicBlock *Block : Blocks) { in moveCodeToFunction()
1690 BasicBlock *header = *Blocks.begin(); in extractCodeRegion()
1699 if (Blocks.count(Pred)) in extractCodeRegion()
1708 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1726 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1728 if (!Blocks.count(Succ)) { in extractCodeRegion()
1740 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1742 if (!Blocks.contains(OldTarget)) in extractCodeRegion()
1768 any_of(Blocks, [&BranchI](const BasicBlock *BB) { in extractCodeRegion()
1818 eraseLifetimeMarkersOnInputs(Blocks, SinkingCands, LifetimesStart); in extractCodeRegion()
1857 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion()
1866 if (!Blocks.count(PN.getIncomingBlock(i))) in extractCodeRegion()