Lines Matching defs:Best
4813 Formula &Best = LU.Formulae[P.first->second];
4817 CostBest.RateFormula(Best, Regs, VisitedRegs, LU);
4819 std::swap(F, Best);
4823 Best.print(dbgs()); dbgs() << '\n');
5091 Formula &Best = LU.Formulae[P.first->second];
5092 if (IsBetterThan(F, Best))
5093 std::swap(F, Best);
5097 Best.print(dbgs()); dbgs() << '\n');
5304 // Check if Best and Reg are SCEVs separated by a constant amount C, and if so
5308 ScalarEvolution &SE, const SCEV *Best,
5311 if (Best->getType() != Reg->getType() ||
5312 (isa<SCEVAddRecExpr>(Best) && isa<SCEVAddRecExpr>(Reg) &&
5313 cast<SCEVAddRecExpr>(Best)->getLoop() !=
5316 std::optional<APInt> Diff = SE.computeConstantDifference(Best, Reg);
5344 const SCEV *Best = nullptr;
5349 if (!Best) {
5350 Best = Reg;
5355 Best = Reg;
5365 IsSimplerBaseSCEVForTarget(TTI, SE, Best, Reg,
5367 Best = Reg;
5373 assert(Best && "Failed to find best LSRUse candidate");
5375 LLVM_DEBUG(dbgs() << "Narrowing the search space by assuming " << *Best
5377 Taken.insert(Best);
5383 if (!LU.Regs.count(Best)) continue;
5388 if (!F.referencesReg(Best)) {