Lines Matching refs:Blocks

243       Blocks(buildExtractionBlockSet(BBs, DT, AllowVarArgs, AllowAlloca)),  in CodeExtractor()
251 Blocks(buildExtractionBlockSet(L.getBlocks(), &DT, in CodeExtractor()
258 static bool definedInRegion(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInRegion() argument
260 if (Blocks.count(I->getParent())) in definedInRegion()
268 static bool definedInCaller(const SetVector<BasicBlock *> &Blocks, Value *V) { in definedInCaller() argument
271 if (!Blocks.count(I->getParent())) in definedInCaller()
276 static BasicBlock *getCommonExitBlock(const SetVector<BasicBlock *> &Blocks) { in getCommonExitBlock() argument
281 if (Blocks.count(Succ)) in getCommonExitBlock()
295 if (any_of(Blocks, hasNonCommonExitSucc)) in getCommonExitBlock()
304 Function *Func = (*Blocks.begin())->getParent(); in isLegalToShrinkwrapLifetimeMarkers()
306 if (Blocks.count(&BB)) in isLegalToShrinkwrapLifetimeMarkers()
353 assert(!Blocks.count(CommonExitBlock) && in findOrCreateBlockForHoisting()
356 if (!Blocks.count(Pred)) in findOrCreateBlockForHoisting()
395 if (Blocks.count(Pred)) in findOrCreateBlockForHoisting()
400 Blocks.insert(CommonExitBlock); in findOrCreateBlockForHoisting()
406 Function *Func = (*Blocks.begin())->getParent(); in findAllocas()
407 ExitBlock = getCommonExitBlock(Blocks); in findAllocas()
410 if (Blocks.count(&BB)) in findAllocas()
444 if (!definedInRegion(Blocks, U)) in findAllocas()
451 SinkLifeStart = !definedInRegion(Blocks, LifeStart); in findAllocas()
452 HoistLifeEnd = !definedInRegion(Blocks, LifeEnd); in findAllocas()
492 if (!definedInRegion(Blocks, U)) { in findAllocas()
501 if (!definedInRegion(Blocks, MarkerAddr)) in findAllocas()
513 for (BasicBlock *BB : Blocks) { in findInputsOutputs()
520 if (!SinkCands.count(V) && definedInCaller(Blocks, V)) in findInputsOutputs()
525 if (!definedInRegion(Blocks, U)) { in findInputsOutputs()
548 if (Blocks.count(PN->getIncomingBlock(i))) in severSplitPHINodesOfEntry()
567 Blocks.remove(OldPred); in severSplitPHINodesOfEntry()
568 Blocks.insert(NewBB); in severSplitPHINodesOfEntry()
578 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodesOfEntry()
598 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodesOfEntry()
621 if (Blocks.count(PN.getIncomingBlock(i))) in severSplitPHINodesOfExits()
639 if (Blocks.count(PredBB)) in severSplitPHINodesOfExits()
642 Blocks.insert(NewBB); in severSplitPHINodesOfExits()
659 for (BasicBlock *Block : Blocks) in splitReturnBlocks()
855 if (Blocks.count(inst->getParent())) in constructFunction()
876 if (I->isTerminator() && !Blocks.count(I->getParent()) && in constructFunction()
986 if (!Blocks.count(inst->getParent())) in emitCallAndSwitchStatement()
1038 for (BasicBlock *Block : Blocks) { in emitCallAndSwitchStatement()
1041 if (!Blocks.count(TI->getSuccessor(i))) { in emitCallAndSwitchStatement()
1126 Function *oldFunc = (*Blocks.begin())->getParent(); in moveCodeToFunction()
1130 for (BasicBlock *Block : Blocks) { in moveCodeToFunction()
1191 eraseLifetimeMarkersOnInputs(const SetVector<BasicBlock *> &Blocks, in eraseLifetimeMarkersOnInputs() argument
1194 for (BasicBlock *BB : Blocks) { in eraseLifetimeMarkersOnInputs()
1205 if (SunkAllocas.count(Mem) || definedInRegion(Blocks, Mem)) in eraseLifetimeMarkersOnInputs()
1255 BasicBlock *header = *Blocks.begin(); in extractCodeRegion()
1270 if (Blocks.count(&BB)) in extractCodeRegion()
1285 if (Blocks.count(Pred)) in extractCodeRegion()
1300 for (BasicBlock *Block : Blocks) { in extractCodeRegion()
1303 if (!Blocks.count(*SI)) { in extractCodeRegion()
1334 any_of(Blocks, [&BranchI](const BasicBlock *BB) { in extractCodeRegion()
1368 eraseLifetimeMarkersOnInputs(Blocks, SinkingCands); in extractCodeRegion()
1407 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion()
1416 if (!Blocks.count(PN.getIncomingBlock(i))) in extractCodeRegion()