Lines Matching refs:Blocks

251       Blocks(buildExtractionBlockSet(BBs, DT, AllowVarArgs, AllowAlloca)),
260 Blocks(buildExtractionBlockSet(L.getBlocks(), &DT,
267 static bool definedInRegion(const SetVector<BasicBlock *> &Blocks, Value *V) {
269 if (Blocks.count(I->getParent()))
277 static bool definedInCaller(const SetVector<BasicBlock *> &Blocks, Value *V) {
280 if (!Blocks.count(I->getParent()))
285 static BasicBlock *getCommonExitBlock(const SetVector<BasicBlock *> &Blocks) {
290 if (Blocks.count(Succ))
302 if (any_of(Blocks, hasNonCommonExitSucc))
374 Function *Func = (*Blocks.begin())->getParent();
376 if (Blocks.count(&BB))
387 assert(!Blocks.count(CommonExitBlock) &&
390 if (!Blocks.count(Pred))
429 if (Blocks.count(Pred))
434 Blocks.insert(CommonExitBlock);
465 if (!definedInRegion(Blocks, U))
472 Info.SinkLifeStart = !definedInRegion(Blocks, Info.LifeStart);
473 Info.HoistLifeEnd = !definedInRegion(Blocks, Info.LifeEnd);
489 Function *Func = (*Blocks.begin())->getParent();
490 ExitBlock = getCommonExitBlock(Blocks);
512 if (Blocks.count(BB))
544 if (!definedInRegion(Blocks, U)) {
562 if (!definedInRegion(Blocks, BitcastAddr)) {
572 if (Blocks.empty())
574 BasicBlock *Header = *Blocks.begin();
589 if (Blocks.count(&BB))
600 for (BasicBlock *BB : Blocks) {
606 if (!SinkCands.count(V) && definedInCaller(Blocks, V))
611 if (!definedInRegion(Blocks, U)) {
634 if (Blocks.count(PN->getIncomingBlock(i)))
653 Blocks.remove(OldPred);
654 Blocks.insert(NewBB);
664 if (Blocks.count(PN->getIncomingBlock(i))) {
684 if (Blocks.count(PN->getIncomingBlock(i))) {
707 if (Blocks.count(PN.getIncomingBlock(i)))
725 if (Blocks.count(PredBB))
728 Blocks.insert(NewBB);
745 for (BasicBlock *Block : Blocks)
947 if (Blocks.count(inst->getParent()))
969 !Blocks.count(I->getParent()))
978 /// The extraction region is defined by a set of blocks (\p Blocks), and a set
981 static void eraseLifetimeMarkersOnInputs(const SetVector<BasicBlock *> &Blocks,
984 for (BasicBlock *BB : Blocks) {
995 if (SunkAllocas.count(Mem) || definedInRegion(Blocks, Mem))
1173 if (!Blocks.count(inst->getParent()))
1191 for (BasicBlock *Block : Blocks) {
1194 if (!Blocks.count(TI->getSuccessor(i))) {
1253 Blocks.count(InsertBefore->getParent())) &&
1327 Function *oldFunc = (*Blocks.begin())->getParent();
1331 for (BasicBlock *Block : Blocks) {
1392 BasicBlock *header = *Blocks.begin();
1401 if (Blocks.count(Pred))
1411 for (BasicBlock *Block : Blocks)
1425 for (BasicBlock *Block : Blocks) {
1428 if (!Blocks.count(*SI)) {
1459 any_of(Blocks, [&BranchI](const BasicBlock *BB) {
1509 eraseLifetimeMarkersOnInputs(Blocks, SinkingCands, LifetimesStart);
1548 if (!Blocks.count(PN->getIncomingBlock(i)))
1557 if (!Blocks.count(PN.getIncomingBlock(i)))