Lines Matching refs:Candidate

184   Optional<unsigned> GVN = Candidate->getGVN(V);  in findCorrespondingValueIn()
186 Optional<unsigned> CanonNum = Candidate->getCanonicalNum(*GVN); in findCorrespondingValueIn()
187 Optional<unsigned> FirstGVN = Other.Candidate->fromCanonicalNum(*CanonNum); in findCorrespondingValueIn()
188 Optional<Value *> FoundValueOpt = Other.Candidate->fromGVN(*FirstGVN); in findCorrespondingValueIn()
246 Instruction *BackInst = Candidate->backInstruction(); in splitCandidate()
256 EndInst = Candidate->end()->Inst; in splitCandidate()
268 Instruction *StartInst = (*Candidate->begin()).Inst; in splitCandidate()
274 Candidate->getBasicBlocks(BBSet); in splitCandidate()
362 Candidate->getBasicBlocks(BBSet); in splitCandidate()
402 Instruction *StartInst = (*Candidate->begin()).Inst; in reattachCandidate()
416 Candidate->getBasicBlocks(BBSet); in reattachCandidate()
496 for (IRInstructionData &ID : *Candidate) { in getBenefit()
549 IRSimilarityCandidate &C = *Region.Candidate; in collectRegionsConstants()
859 IRSimilarityCandidate &C = *Region.Candidate; in getCodeExtractorArguments()
930 IRSimilarityCandidate &C = *Region.Candidate; in findExtractedInputToOverallInputMapping()
1171 IRSimilarityCandidate &Cand = *Region.Candidate; in getGVNForPHINode()
1271 IRSimilarityCandidate &C = *Region.Candidate; in findExtractedOutputToOverallOutputMapping()
1649 Optional<unsigned> GVN = Region.Candidate->getGVN(IVal); in findCanonNumsForPHI()
1651 Optional<unsigned> CanonNum = Region.Candidate->getCanonicalNum(*GVN); in findCanonNumsForPHI()
1871 Region.Candidate->getGVN(ValueOperand).has_value()) { in replaceArgumentUses()
1883 if (Region.Candidate->getGVN(PN)) in replaceArgumentUses()
2357 IRSimilarityCandidate *IRSC = Region.Candidate; in isCompatibleWithAlreadyOutlinedCode()
2369 if (!Region.Candidate->backInstruction()->isTerminator()) { in isCompatibleWithAlreadyOutlinedCode()
2371 Region.Candidate->backInstruction()->getNextNonDebugInstruction(); in isCompatibleWithAlreadyOutlinedCode()
2373 if (Region.Candidate->end()->Inst != NewEndInst) { in isCompatibleWithAlreadyOutlinedCode()
2374 IRInstructionDataList *IDL = Region.Candidate->front()->IDL; in isCompatibleWithAlreadyOutlinedCode()
2381 IDL->insert(Region.Candidate->end(), *NewEndIRID); in isCompatibleWithAlreadyOutlinedCode()
2503 Optional<unsigned> OGVN = Region.Candidate->fromCanonicalNum(OutputCanon); in findOutputValueInRegion()
2505 Optional<Value *> OV = Region.Candidate->fromGVN(*OGVN); in findOutputValueInRegion()
2548 IRSimilarityCandidate &Candidate = *CurrentGroup.Regions[0]->Candidate; in findCostForOutputBlocks() local
2550 Candidate.getBasicBlocks(CandidateBlocks); in findCostForOutputBlocks()
2555 for (IRInstructionData &ID : Candidate) { in findCostForOutputBlocks()
2628 getTTI(*CurrentGroup.Regions[0]->Candidate->getFunction()); in findCostBenefit()
2736 IRInstructionDataList *IDL = Region.Candidate->front()->IDL; in extractSection()
2746 IDL->insert(Region.Candidate->begin(), *Region.NewFront); in extractSection()
2749 IDL->insert(Region.Candidate->end(), *Region.NewBack); in extractSection()
2751 IDL->erase(Region.Candidate->begin(), std::prev(Region.Candidate->end())); in extractSection()
2834 OS->Candidate->getBasicBlocks(BlocksInRegion, BE); in doOutline()
2861 getORE(*CurrentGroup.Regions[0]->Candidate->getFunction()); in doOutline()
2863 IRSimilarityCandidate *C = CurrentGroup.Regions[0]->Candidate; in doOutline()
2877 Region->Candidate->frontInstruction()->getDebugLoc()); in doOutline()
2945 OS->Candidate->getBasicBlocks(BlocksInRegion, BE); in doOutline()
2951 unsigned StartIdx = OS->Candidate->getStartIdx(); in doOutline()
2952 unsigned EndIdx = OS->Candidate->getEndIdx(); in doOutline()
2972 IRSimilarityCandidate *C = CurrentGroup.Regions[0]->Candidate; in doOutline()
2982 Region->Candidate->frontInstruction()->getDebugLoc()); in doOutline()