Lines Matching refs:Blocks
254 Blocks(buildExtractionBlockSet(BBs, DT, AllowVarArgs, AllowAlloca)), in CodeExtractor()
263 Blocks(buildExtractionBlockSet(L.getBlocks(), &DT, in CodeExtractor()
270 static bool definedInRegion(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInRegion() argument
272 if (Blocks.count(I->getParent())) in definedInRegion()
280 static bool definedInCaller(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInCaller() argument
283 if (!Blocks.count(I->getParent())) in definedInCaller()
288 static BasicBlock *getCommonExitBlock(const SetVector<BasicBlock *> &Blocks) { in getCommonExitBlock() argument
293 if (Blocks.count(Succ)) in getCommonExitBlock()
305 if (any_of(Blocks, hasNonCommonExitSucc)) in getCommonExitBlock()
377 Function *Func = (*Blocks.begin())->getParent(); in isLegalToShrinkwrapLifetimeMarkers()
379 if (Blocks.count(&BB)) in isLegalToShrinkwrapLifetimeMarkers()
390 assert(!Blocks.count(CommonExitBlock) && in findOrCreateBlockForHoisting()
393 if (!Blocks.count(Pred)) in findOrCreateBlockForHoisting()
431 if (Blocks.count(Pred)) in findOrCreateBlockForHoisting()
436 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()
1009 if (Blocks.count(inst->getParent())) in constructFunction()
1031 !Blocks.count(I->getParent())) in constructFunction()
1043 static void eraseLifetimeMarkersOnInputs(const SetVector<BasicBlock *> &Blocks, in eraseLifetimeMarkersOnInputs() argument
1046 for (BasicBlock *BB : Blocks) { in eraseLifetimeMarkersOnInputs()
1057 if (SunkAllocas.count(Mem) || definedInRegion(Blocks, Mem)) in eraseLifetimeMarkersOnInputs()
1233 if (!Blocks.count(inst->getParent())) in emitCallAndSwitchStatement()
1251 for (BasicBlock *Block : Blocks) { in emitCallAndSwitchStatement()
1254 if (!Blocks.count(TI->getSuccessor(i))) { in emitCallAndSwitchStatement()
1313 Blocks.count(InsertBefore->getParent())) && in emitCallAndSwitchStatement()
1387 Function *oldFunc = (*Blocks.begin())->getParent(); in moveCodeToFunction()
1391 for (BasicBlock *Block : Blocks) { in moveCodeToFunction()
1577 BasicBlock *header = *Blocks.begin(); in extractCodeRegion()
1586 if (Blocks.count(Pred)) in extractCodeRegion()
1595 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1616 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1618 if (!Blocks.count(Succ)) { in extractCodeRegion()
1649 any_of(Blocks, [&BranchI](const BasicBlock *BB) { in extractCodeRegion()
1699 eraseLifetimeMarkersOnInputs(Blocks, SinkingCands, LifetimesStart); in extractCodeRegion()
1738 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion()
1747 if (!Blocks.count(PN.getIncomingBlock(i))) in extractCodeRegion()